Skip to content

CollectionField to another relation on detail page is calling EDIT action on crud controller of relation #7460

@siggidiel

Description

@siggidiel

Describe the bug
I have two entities which have a OneToMany relation -> EntityA (one) <--> EntityB (many). On the DETAIL page of my EntityACrudController I am using a CollectionField::new('relationalField'). This is causing a crash of my application, because it calls the EntityBCrudController's EDIT action, where I am using the AdminContext to receive the entity instance, which is null in that case (it is working perfectly fine if I visit the EDIT page of EntityBCrudController directly).

Why is it calling the EDIT action of the crud controller of my other entity???

This is happening after I updated EasyAdmin to version 4.29.1.

Btw: I am not using the useEntryCrudForm() method on my CollectionField. And I am not using pretty URLs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions