I donβt quite understand what you are saying there, because for me I need 3 teams and different teams.
If you want to inherit the database schema to generate the necessary Symfony ORF files and entities, you must use 3 commands.
Here's what they do: 1)
php app/console doctrine:mapping:convert yml ./src/< vendor>/< bundle_name>/Resources/config/doctrine/metadata/orm --from-database --force
This creates entity mapping files from the database by introspection. For each table in the database, this will simply generate <entity> .orm.yml in:
< proj_folder>/src/< vendor>/< bundle_name>/Resources/config/doctrine/metadata/orm/< entity>.orm.yml
2)
php app/console doctrine:mapping:import < vendor>< bundle_name> annotation**
Generate entity classes for each table introduced from the database:
OUTPUT: writing /var/www/html/< project_folder>/src/< vendor>/< bundle_name>/Entity/< entity>.php
3)
php app/console doctrine:generate:entities < vendor>< nameBundle>**
This only generates recipients and setters for all properties of the entity class.
source share