Reference Symfony2

#update database schema
php app/console doctrine:schema:update --force

# Generates full entity
php app/console doctrine:generate:entity

# Adds Getter's and setters to entity
php app/console doctrine:generate:entities <DirInSrc>/<bundle>/Entity/<Entity>

Leave a Reply

Your email address will not be published. Required fields are marked *