Description
Hello,
there are lots of users using doctrine:generate:entities
nowadays. This must stop.
Symfony should provide its large user base decent article on designing/modelling entities in a proper way, with business methods and as few setters as possible, not by generating them from database. Such generated entities lead to a tediously known anemic domain model, something that does more harm than good: breaks encapsulation and completely undermines the purpose of ORM. It'd probably be even better to not use ORM at all and use DBAL directly, the result would be very similar without runtime overhead.
Note that Doctrine 3.0 will remove support for code generation entirely, so the better we educate the users, the better.
This issue is a direct response to discussion in doctrine/DoctrineBundle#729.
Thanks.