Pt_BR En Ja De Fr 

Doctrine PHP ORM Features

Command Line Interface

The command line interface is a simple php/shell script which groups together some of the commonly used tasks performed by Doctrine. This makes it easy to administer your implementations of Doctrine from the terminal. Below is a list of tasks available for the Doctrine CLI.

  • build-all - Generate models from schema, create database and create tables.
  • build-all-load - Generate models from schema, create database, create tables and load data.
  • build-all-reload - Drop database, generate models from schema, create database, create tables and load data.
  • compile - Compile Doctrine in to a single file.
  • create-db - Create database for all instantiated connections.
  • create-tables - Create tables for all your Doctrine models.
  • dql - Execute DQL queries and display the formatted results.
  • drop-db - Drop database for all instantiated connections.
  • dump-data - Dump data for your doctrine models to data fixtures.
  • generate-migration - Generate migration class template.
  • generate-migrations-from-db - Generate migration classes from all instantiated database connections.
  • generate-migrations-from-models - Generate migration classes from your Doctrine models.
  • generate-models-from-db - Generate Doctrine models from all instantiated database connections.
  • generate-models-from-yaml - Generate Doctrine models from yaml schema files.
  • generate-sql - Generate a sql file to create the tables for all your Doctrine models.
  • generate-yaml-from-db - Generate a yaml schema file from all instantiated database connections.
  • generate-yaml-from-models - Generate a yaml schema file from all your Doctrine models.
  • load-data - Load data for your Doctrine models from data fixtures.
  • load-dummy-data - Load dummy data generated by Doctrine in to your Doctrine models
  • migrate - Perform database migrations
  • rebuild-db - Drop database, create database and create tables.
Read more about Command Line Interface here