. */ /** * Doctrine_Task_GenerateMigrationsModels * * @package Doctrine * @subpackage Task * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.com * @since 1.0 * @version $Revision: 2761 $ * @author Jonathan H. Wage */ class Doctrine_Task_GenerateMigrationsModels extends Doctrine_Task { public $description = 'Generate migration classes for an existing set of models', $requiredArguments = array('migrations_path' => 'Specify the path to your migration classes folder.', 'models_path' => 'Specify the path to your doctrine models folder.'), $optionalArguments = array(); public function execute() { Doctrine::generateMigrationsFromModels($this->getArgument('migrations_path'), $this->getArgument('models_path')); $this->dispatcher->notify('Generated migration classes successfully from models'); } }