Description
For me, one of the first downsides I have encountered while testing out Flex with Symfony4 is the missing command of doctrine:generate:entity
with all the helper questions + the not working doctrine:generate:entities
(see doctrine/DoctrineBundle#729 fore more info).
My previous workflow whenever I was prototyping something was:
- generate the entities with
doctrine:generate:entity
by answering to a couple of questions; - I always opted for YAML mapping, so the next step was to edit the files to create the relations between entities
- updating the entities with
doctrine:generate:entities
to get the new properties and appropriate methods (e.g. __construct with initialized ArrayCollection objects, addElement, removeElement etc.) - update schema
With the current make:entity command, it took me more than 4 times the time in order to get an up & running 3 entities related between them (Job, Category, Affiliate - remember good ol' Jobeet tutorial).
I would like to bring under your attention the need of migrating the functionality from SensioGeneratorBundle to the MakerBundle for doctrine:generate:entity
command (very useful when first creating an entity).
Also, I would like to propose discussing the idea of migrating doctrine:generate:entities
from DoctrineBundle, as the core maintainers from that project are not in favor of maintaining this command for the purpose of generating setters and getters based on mapping information.
I don't know if the 2nd proposal should be part of make:entity
command or another one command.