"$doctrine = new sfDoctrineDropDbTask($configuration->getEventDispatcher(), new sfAnsiColorFormatter());
$doctrine->run(array(), array("--no-confirmation","--env=test"));
$doctrine = new sfDoctrineBuildDbTask($configuration->getEventDispatcher(), new sfAnsiColorFormatter());
$doctrine->run(array(), array("--env=test"));
$doctrine = new sfDoctrineInsertSqlTask($configuration->getEventDispatcher(), new sfAnsiColorFormatter());
$doctrine->run(array(), array("--env=test"));"
"01 Author:
02 tableName: author
03 columns:
04 ...
05 relations:
06 Book:
07 class: Book
08 refClass: LinkingAuthorBook #This will allow you to reference Book rows from an Author object
09 local: author_id #Local value refers to the current object, in this case Author
10 foreign: book_id #Foreign value refers to the object you wish to link to from Author, in this case Book
11 Book:
12 tableName: book
13 columns:
14 ...
15 relations:
16 Author:
17 class: Author
18 refClass: LinkingAuthorBook #This will allow you to reference Author rows from a Book object
19 local: book_id #Local value refers to the current object, in this case Author
20 foreign: author_id #Foreign value refers to the object you wish to link to from Book, in this case Author"
"Here's a simple recursive function to copy entire directories
Note to do your own check to make sure the directory exists that you first call it on.
"