EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Decouple forms and entities

Open rernesto opened this issue 8 years ago • 2 comments

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.

rernesto avatar Jun 01 '18 11:06 rernesto

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

kiler129 avatar Jun 09 '18 05:06 kiler129

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!

javiereguiluz avatar Jun 10 '18 17:06 javiereguiluz