1. Create a mapping file.
$ app/console doctrine:mapping:convert yml ./src/Acme/BlogBundle/Resources/config/doctrine/metadata/orm --from-database --force --filter=TableName --em=defaultEntityManager2. Import annotation.
$ app/console doctrine:mapping:import BundleName annotation --filter=TableName --em=defaultEntityManager3. Generate the entity.
$ app/console doctrine:generate:entitie Vendor/BundleName/Entity/EntityName
No comments:
Post a Comment