Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
34d4f128
Commit
34d4f128
authored
Oct 23, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
parent
e50b2762
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
GenerateModelsDb.php
lib/Doctrine/Task/GenerateModelsDb.php
+4
-4
GenerateModelsYaml.php
lib/Doctrine/Task/GenerateModelsYaml.php
+4
-4
package.xml
package.xml
+2
-2
config.php.dist
tools/sandbox/config.php.dist
+2
-2
No files found.
lib/Doctrine/Task/GenerateModels
From
Db.php
→
lib/Doctrine/Task/GenerateModelsDb.php
View file @
34d4f128
<?php
/*
* $Id: GenerateModels
From
Db.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
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...
...
@@ -20,7 +20,7 @@
*/
/**
* Doctrine_Task_GenerateModels
From
Db
* Doctrine_Task_GenerateModelsDb
*
* @package Doctrine
* @subpackage Task
...
...
@@ -30,7 +30,7 @@
* @version $Revision: 2761 $
* @author Jonathan H. Wage <jwage@mac.com>
*/
class
Doctrine_Task_GenerateModels
From
Db
extends
Doctrine_Task
class
Doctrine_Task_GenerateModelsDb
extends
Doctrine_Task
{
public
$description
=
'Generates your Doctrine_Record definitions from your existing database connections.'
,
$requiredArguments
=
array
(
'models_path'
=>
'Specify path to your Doctrine_Record definitions.'
),
...
...
@@ -42,4 +42,4 @@ class Doctrine_Task_GenerateModelsFromDb extends Doctrine_Task
$this
->
dispatcher
->
notify
(
'Generated models successfully from databases'
);
}
}
\ No newline at end of file
}
lib/Doctrine/Task/GenerateModels
From
Yaml.php
→
lib/Doctrine/Task/GenerateModelsYaml.php
View file @
34d4f128
<?php
/*
* $Id: GenerateModels
From
Yaml.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
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...
...
@@ -20,7 +20,7 @@
*/
/**
* Doctrine_Task_GenerateModels
From
Yaml
* Doctrine_Task_GenerateModelsYaml
*
* @package Doctrine
* @subpackage Task
...
...
@@ -30,7 +30,7 @@
* @version $Revision: 2761 $
* @author Jonathan H. Wage <jwage@mac.com>
*/
class
Doctrine_Task_GenerateModels
From
Yaml
extends
Doctrine_Task
class
Doctrine_Task_GenerateModelsYaml
extends
Doctrine_Task
{
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.'
,
...
...
@@ -43,4 +43,4 @@ class Doctrine_Task_GenerateModelsFromYaml extends Doctrine_Task
$this
->
notify
(
'Generated models successfully from YAML schema'
);
}
}
\ No newline at end of file
}
package.xml
View file @
34d4f128
...
...
@@ -12,8 +12,8 @@
</lead>
<date>
2007-10-22
</date>
<version>
<release>
0.1.0
-DEV
</release>
<api>
0.1.0
-DEV
</api>
<release>
0.1.0
</release>
<api>
0.1.0
</api>
</version>
<stability>
<release>
beta
</release>
...
...
tools/sandbox/config.php.dist
View file @
34d4f128
...
...
@@ -35,7 +35,7 @@
*/
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
(
'MODELS_PATH'
,
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'models'
);
define
(
'MIGRATIONS_PATH'
,
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'migrations'
);
...
...
@@ -49,4 +49,4 @@ require_once(DOCTRINE_PATH . DIRECTORY_SEPARATOR . 'Doctrine.php');
spl_autoload_register
(
array
(
'Doctrine'
,
'autoload'
));
$pdo
=
new
PDO
(
DSN
);
Doctrine_Manager
::
connection
(
$pdo
,
'sandbox'
);
\ No newline at end of file
Doctrine_Manager
::
connection
(
$pdo
,
'sandbox'
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment