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
779003ed
Commit
779003ed
authored
Oct 19, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed Facade and moved all static methods to Doctrine class.
parent
dfdcf002
Changes
11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
380 additions
and
464 deletions
+380
-464
Doctrine.php
lib/Doctrine.php
+370
-27
Facade.php
lib/Doctrine/Facade.php
+0
-427
Compile.php
lib/Doctrine/Task/Compile.php
+1
-1
CreateDb.php
lib/Doctrine/Task/CreateDb.php
+1
-1
CreateTables.php
lib/Doctrine/Task/CreateTables.php
+1
-1
DropDb.php
lib/Doctrine/Task/DropDb.php
+1
-1
DumpData.php
lib/Doctrine/Task/DumpData.php
+2
-2
GenerateMigration.php
lib/Doctrine/Task/GenerateMigration.php
+1
-1
GenerateModelsFromDb.php
lib/Doctrine/Task/GenerateModelsFromDb.php
+1
-1
GenerateModelsFromYaml.php
lib/Doctrine/Task/GenerateModelsFromYaml.php
+1
-1
GenerateSql.php
lib/Doctrine/Task/GenerateSql.php
+1
-1
No files found.
lib/Doctrine.php
View file @
779003ed
This diff is collapsed.
Click to expand it.
lib/Doctrine/Facade.php
deleted
100644 → 0
View file @
dfdcf002
This diff is collapsed.
Click to expand it.
lib/Doctrine/Task/Compile.php
View file @
779003ed
...
...
@@ -39,6 +39,6 @@ class Doctrine_Task_Compile extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
compile
(
$this
->
getArgument
(
'compiled_path'
),
$this
->
getArgument
(
'drivers'
,
array
()));
Doctrine
::
compile
(
$this
->
getArgument
(
'compiled_path'
),
$this
->
getArgument
(
'drivers'
,
array
()));
}
}
\ No newline at end of file
lib/Doctrine/Task/CreateDb.php
View file @
779003ed
...
...
@@ -37,6 +37,6 @@ class Doctrine_Task_CreateDb extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
createDatabases
(
$this
->
getArgument
(
'connection'
));
Doctrine
::
createDatabases
(
$this
->
getArgument
(
'connection'
));
}
}
\ No newline at end of file
lib/Doctrine/Task/CreateTables.php
View file @
779003ed
...
...
@@ -38,6 +38,6 @@ class Doctrine_Task_CreateTables extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
createTablesFromModels
(
$this
->
getArgument
(
'models_path'
));
Doctrine
::
createTablesFromModels
(
$this
->
getArgument
(
'models_path'
));
}
}
\ No newline at end of file
lib/Doctrine/Task/DropDb.php
View file @
779003ed
...
...
@@ -38,6 +38,6 @@ class Doctrine_Task_DropDb extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
dropDatabases
(
$this
->
getArgument
(
'connection'
));
Doctrine
::
dropDatabases
(
$this
->
getArgument
(
'connection'
));
}
}
\ No newline at end of file
lib/Doctrine/Task/DumpData.php
View file @
779003ed
...
...
@@ -39,7 +39,7 @@ class Doctrine_Task_DumpData extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
loadModels
(
$this
->
getArgument
(
'models_path'
));
Doctrine
::
loadModels
(
$this
->
getArgument
(
'models_path'
));
$individualFiles
=
$this
->
getArgument
(
'individual_files'
)
?
true
:
false
;
...
...
@@ -53,6 +53,6 @@ class Doctrine_Task_DumpData extends Doctrine_Task
}
}
Doctrine
_Facade
::
dumpData
(
$path
,
$individualFiles
);
Doctrine
::
dumpData
(
$path
,
$individualFiles
);
}
}
\ No newline at end of file
lib/Doctrine/Task/GenerateMigration.php
View file @
779003ed
...
...
@@ -39,6 +39,6 @@ class Doctrine_Task_GenerateMigration extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
generateMigrationClass
(
$this
->
getArgument
(
'class_name'
),
$this
->
getArgument
(
'migrations_path'
));
Doctrine
::
generateMigrationClass
(
$this
->
getArgument
(
'class_name'
),
$this
->
getArgument
(
'migrations_path'
));
}
}
\ No newline at end of file
lib/Doctrine/Task/GenerateModelsFromDb.php
View file @
779003ed
...
...
@@ -38,6 +38,6 @@ class Doctrine_Task_GenerateModelsFromDb extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
generateModelsFromDb
(
$this
->
getArgument
(
'models_path'
),
(
array
)
$this
->
getArgument
(
'connection'
));
Doctrine
::
generateModelsFromDb
(
$this
->
getArgument
(
'models_path'
),
(
array
)
$this
->
getArgument
(
'connection'
));
}
}
\ No newline at end of file
lib/Doctrine/Task/GenerateModelsFromYaml.php
View file @
779003ed
...
...
@@ -39,6 +39,6 @@ class Doctrine_Task_GenerateModelsFromYaml extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
generateModelsFromYaml
(
$this
->
getArgument
(
'yaml_schema_path'
),
$this
->
getArgument
(
'models_path'
));
Doctrine
::
generateModelsFromYaml
(
$this
->
getArgument
(
'yaml_schema_path'
),
$this
->
getArgument
(
'models_path'
));
}
}
\ No newline at end of file
lib/Doctrine/Task/GenerateSql.php
View file @
779003ed
...
...
@@ -47,7 +47,7 @@ class Doctrine_Task_GenerateSql extends Doctrine_Task
throw
new
Doctrine_Task_Exception
(
'Invalid sql path.'
);
}
$sql
=
Doctrine
_Facade
::
generateSqlFromModels
(
$this
->
getArgument
(
'models_path'
));
$sql
=
Doctrine
::
generateSqlFromModels
(
$this
->
getArgument
(
'models_path'
));
file_put_contents
(
$path
,
$sql
);
}
...
...
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