Commit 34d4f128 authored by Jonathan.Wage's avatar Jonathan.Wage

-

parent e50b2762
<?php <?php
/* /*
* $Id: GenerateModelsFromDb.php 2761 2007-10-07 23:42:29Z zYne $ * $Id: GenerateModelsDb.php 2761 2007-10-07 23:42:29Z zYne $
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
*/ */
/** /**
* Doctrine_Task_GenerateModelsFromDb * Doctrine_Task_GenerateModelsDb
* *
* @package Doctrine * @package Doctrine
* @subpackage Task * @subpackage Task
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* @version $Revision: 2761 $ * @version $Revision: 2761 $
* @author Jonathan H. Wage <jwage@mac.com> * @author Jonathan H. Wage <jwage@mac.com>
*/ */
class Doctrine_Task_GenerateModelsFromDb extends Doctrine_Task class Doctrine_Task_GenerateModelsDb extends Doctrine_Task
{ {
public $description = 'Generates your Doctrine_Record definitions from your existing database connections.', public $description = 'Generates your Doctrine_Record definitions from your existing database connections.',
$requiredArguments = array('models_path' => 'Specify path to your Doctrine_Record definitions.'), $requiredArguments = array('models_path' => 'Specify path to your Doctrine_Record definitions.'),
...@@ -42,4 +42,4 @@ class Doctrine_Task_GenerateModelsFromDb extends Doctrine_Task ...@@ -42,4 +42,4 @@ class Doctrine_Task_GenerateModelsFromDb extends Doctrine_Task
$this->dispatcher->notify('Generated models successfully from databases'); $this->dispatcher->notify('Generated models successfully from databases');
} }
} }
\ No newline at end of file
<?php <?php
/* /*
* $Id: GenerateModelsFromYaml.php 2761 2007-10-07 23:42:29Z zYne $ * $Id: GenerateModelsYaml.php 2761 2007-10-07 23:42:29Z zYne $
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
*/ */
/** /**
* Doctrine_Task_GenerateModelsFromYaml * Doctrine_Task_GenerateModelsYaml
* *
* @package Doctrine * @package Doctrine
* @subpackage Task * @subpackage Task
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* @version $Revision: 2761 $ * @version $Revision: 2761 $
* @author Jonathan H. Wage <jwage@mac.com> * @author Jonathan H. Wage <jwage@mac.com>
*/ */
class Doctrine_Task_GenerateModelsFromYaml extends Doctrine_Task class Doctrine_Task_GenerateModelsYaml extends Doctrine_Task
{ {
public $description = 'Generates your Doctrine_Record definitions from a Yaml schema file', public $description = 'Generates your Doctrine_Record definitions from a Yaml schema file',
$requiredArguments = array('yaml_schema_path' => 'Specify the complete directory path to your yaml schema files.', $requiredArguments = array('yaml_schema_path' => 'Specify the complete directory path to your yaml schema files.',
...@@ -43,4 +43,4 @@ class Doctrine_Task_GenerateModelsFromYaml extends Doctrine_Task ...@@ -43,4 +43,4 @@ class Doctrine_Task_GenerateModelsFromYaml extends Doctrine_Task
$this->notify('Generated models successfully from YAML schema'); $this->notify('Generated models successfully from YAML schema');
} }
} }
\ No newline at end of file
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
</lead> </lead>
<date>2007-10-22</date> <date>2007-10-22</date>
<version> <version>
<release>0.1.0-DEV</release> <release>0.1.0</release>
<api>0.1.0-DEV</api> <api>0.1.0</api>
</version> </version>
<stability> <stability>
<release>beta</release> <release>beta</release>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
*/ */
define('SANDBOX_PATH', dirname(__FILE__)); define('SANDBOX_PATH', dirname(__FILE__));
define('DOCTRINE_PATH', dirname(SANDBOX_PATH) . DIRECTORY_SEPARATOR . 'lib'); define('DOCTRINE_PATH', dirname(dirname(SANDBOX_PATH)) . DIRECTORY_SEPARATOR . 'lib');
define('DATA_FIXTURES_PATH', SANDBOX_PATH . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'fixtures'); define('DATA_FIXTURES_PATH', SANDBOX_PATH . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'fixtures');
define('MODELS_PATH', SANDBOX_PATH . DIRECTORY_SEPARATOR . 'models'); define('MODELS_PATH', SANDBOX_PATH . DIRECTORY_SEPARATOR . 'models');
define('MIGRATIONS_PATH', SANDBOX_PATH . DIRECTORY_SEPARATOR . 'migrations'); define('MIGRATIONS_PATH', SANDBOX_PATH . DIRECTORY_SEPARATOR . 'migrations');
...@@ -49,4 +49,4 @@ require_once(DOCTRINE_PATH . DIRECTORY_SEPARATOR . 'Doctrine.php'); ...@@ -49,4 +49,4 @@ require_once(DOCTRINE_PATH . DIRECTORY_SEPARATOR . 'Doctrine.php');
spl_autoload_register(array('Doctrine', 'autoload')); spl_autoload_register(array('Doctrine', 'autoload'));
$pdo = new PDO(DSN); $pdo = new PDO(DSN);
Doctrine_Manager::connection($pdo, 'sandbox'); Doctrine_Manager::connection($pdo, 'sandbox');
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment