My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
DoctrineCommand  
Updated May 28, 2009 by thiagova...@gmail.com

Using Doctrine tasks into Yii shell client

Installation

1 Put DoctrineCommand.php under application.commands.shell folder

2 Start the yiic shell poiting to your application entry script and a command "doctrine" should be available.

Details

Only works if you have Doctrine integrated.

Schema files must be 'schema.yml' under your models folder.

Migrations path is: (application path or module path)/models/migrations.

If you use Doctrine data fixtures, be sure to name it 'fixtures.yml' under your models folder.

It will use the default options from Doctrine.

Tasks

build-all

build-all-load

build-all-reload

compile

create-db

create-tables

dql

drop-db

dump-data

generate-migration

generate-migrations-db

generate-migrations-models

generate-models-db

generate-models-yaml

generate-sql

generate-yaml-db

generate-yaml-models

load-data

migrate

rebuild-db

Comment by nikiti...@gmail.com, Nov 25, 2009

Hi! How do you make a crud function with doctrine?


Sign in to add a comment
Powered by Google Project Hosting