EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

[findEntityFqcnByCrud] - Allows you to find the Fqcn of an entity fro…

Open qhayat opened this issue 1 year ago • 0 comments

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 to findEntityFqcnByCrud wich take an instance of CrudControllerInterface.
  • 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

qhayat avatar Nov 20 '23 13:11 qhayat