. */ /** * Doctrine_Task_GenerateMigrationsFromDb * * @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_GenerateMigrationsFromDb extends Doctrine_Task { public $description = 'Generate migration classes for an existing database', $requiredArguments = array('migrations_path' => 'Specify the complete path to your migration classes folder.'), $optionalArguments = array(); public function execute() { Doctrine::generateMigrationsFromDb($this->getArgument('migrations_path')); $this->dispatcher->notify('Generated migration classes successfully from database'); } }