EasyAdminBundle
EasyAdminBundle copied to clipboard
Decouple forms and entities
Use DTO and decouple forms and asserts from entities. Check Don't Use Entities in Symfony Forms. Use Custom Data Objects Instead for an example.
Cause return type hint in php 7.x now I am using :?type in all my 'get' statements and '?' in places where the method never returns null value.
While the idea is good I don't think it would be easy to convert whole EAB to use DTOs.
Edit: see https://github.com/EasyCorp/EasyAdminBundle/issues/1819
I'm afraid @kiler129 is right. It's really hard to add support for this feature in this bundle ... so for the moment we're not planning to add it. I'm sorry!