. */ /** * Doctrine_Task_CreateTables * * @package Doctrine * @subpackage Task * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.org * @since 1.0 * @version $Revision: 2761 $ * @author Jonathan H. Wage */ class Doctrine_Task_CreateTables extends Doctrine_Task { public $description = 'Create tables for all existing database connections. If table exists nothing happens.', $requiredArguments = array('models_path' => 'Specify path to your models directory.'), $optionalArguments = array(); public function execute() { Doctrine::createTablesFromModels($this->getArgument('models_path')); $this->dispatcher->notify('Created tables successfully'); } }