Reputation: 5607
How do I manually edit and delete an entity in Symfony2?
I get that it creates a class, but how do I edit everything? I'm guessing I can't just change the PHP class file.
So which files does it create when you use the automatic entity generator and is there an automated-edit command? I use Yaml.
I know with bundles then you there are three files that the automated console command creates/changes, but I can't see any info as to how for entities.
I like to use the automation to save time, but still like to know actually what is being done etc.
Upvotes: 0
Views: 294
Reputation: 7800
Modify your php code ( Entities code ) then just run
php app/console doctrine:generate:entities BundleName:EntityName
you may also want to update your db by running
php app/console doctrine:schema:update --force
Upvotes: 1