PHP Framework---Symfony reading notes 2--doctrine built-in tasks____php

Source: Internet
Author: User
Tags php framework

Configuration database file: config/databases.yml

Schema file: config/doctrine/schema.yml

1. Generate schema files from the specified database:

$ php symfony Doctrine:build-schema

2. Generate model class According to schema file:

$ php symfony doctrine:build--model

3. Generate SQL According to model:

$ php symfony doctrine:build--sql
$ php symfony Help Doctrine:insert-sql

4. Generation of all documents, including forms and validation

$ php symfony doctrine:build--all--no-confirmation


The following command can redo all the data files: Generate your forms, filters, models, Dropyour database and re-create it with the tables.

$ php symfony doctrine:build--all--and-load

Create modules for already existing model "Jobeetjob"

$ php symfony doctrine:generate-module--with-show--non-verbose-templates frontend Job Jobeetjob

Note: You can view jobeetjob information by accessing http://localhost:[port]/frontend_dev.php/job/






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.