EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

[Search] Allow Searching in nested ORM\Embedded property

Open gmorel opened this issue 5 years ago • 1 comments

Pain Point

Thanks to #3864 you can now search on nested entities :rocket:. But if you try to search on an Entity which has nested Embedable you might have this error Screenshot from 2020-10-20 18-52-46

CRUD config: Screenshot from 2020-10-20 19-00-34

Usecase:

  • property (ORM\ManyToOne)
    • landlord (ORM\ManyToOne)
      • person1 (ORM\Embedded)
        • firstName (string)

Screenshot from 2020-10-20 18-54-38

It fails to find person1 since only person1.firstName is mapped in landlord. Screenshot from 2020-10-20 18-54-12

TODO

  • [x] Allow searching on nested embeddable
  • [ ] Unit Test

gmorel avatar Oct 20 '20 17:10 gmorel

I wanted to unit test it. But EntityRepository is not tested yet.

gmorel avatar Oct 20 '20 17:10 gmorel