Useful symfony command line statements

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.