EasyAdminBundle
EasyAdminBundle copied to clipboard
[findEntityFqcnByCrud] - Allows you to find the Fqcn of an entity fro…
When using easy admin in a bundle, it does not map the crud in crudFqcnToEntityFqcnMap
.
Since the Crud holds the Fqcn of the linked entity. I propose:
- Rename the method
findEntityFqcnByCrudFqcn
tofindEntityFqcnByCrud
wich take an instance ofCrudControllerInterface
. - Then if the method does not find the mapping, it will use the
getEntityFqcn
method of the crud passed as a parameter.
ps: Namely the findEntityFqcnByCrudFqcn
method is only called once in AdminContextFactory