Update database structure phpappconsoledoctrine: schema: updateforce add Entitygetset selector phpappconsolegenerate: doctrine: entitiesxxxxxxxxx copy the file to the phpappconsole under the public web directory? Assets: installweb generates the Entity file phpappconsole
Update database structure php app/console doctrine: schema: update force add Entity get/set selector php app/console generate: doctrine: entities XXX/XXXX/copy the file to the php app/console in the public web directory? Assets: install web generation Entity file php app/console
Update database structure
Php app/console doctrine: schema: update-force
Add Entity get/set Selector
Php app/console generate: doctrine: entities XXX/XXXX/
Copy the file to a public web directory.
Php app/console? Assets: install web
Generate Entity file
Php app/console doctrine: generate: entity-entity = "XXX/XXX"-fields = "name: string (255) platformId: integer"
Clear Cache
Php app/console cache: clear-env dev
Phpunit
Phpunit-c app/-filter
View the SQL to be updated
Php app/console doctrine: schema: update-dump-SQL
Execute update
Php app/console doctrine: schema: update-force
Rebuilding the salesOrder Model
Php app/console doctrine: generate: entities XXX/XXX
Original article address: a useful symfony command line statement. Thank you for sharing it with the original author.