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
16933ef9
Commit
16933ef9
authored
Oct 19, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed Facade.
parent
779003ed
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
24 deletions
+13
-24
Export.php
lib/Doctrine/Export.php
+6
-17
GenerateYamlFromDb.php
lib/Doctrine/Task/GenerateYamlFromDb.php
+1
-1
GenerateYamlFromModels.php
lib/Doctrine/Task/GenerateYamlFromModels.php
+1
-1
LoadData.php
lib/Doctrine/Task/LoadData.php
+2
-2
LoadDummyData.php
lib/Doctrine/Task/LoadDummyData.php
+2
-2
Migrate.php
lib/Doctrine/Task/Migrate.php
+1
-1
No files found.
lib/Doctrine/Export.php
View file @
16933ef9
...
...
@@ -127,20 +127,9 @@ class Doctrine_Export extends Doctrine_Connection_Module
public
function
dropConstraint
(
$table
,
$name
,
$primary
=
false
)
{
$table
=
$this
->
conn
->
quoteIdentifier
(
$table
);
$name
=
$this
->
conn
->
quoteIdentifier
(
$
name
);
$name
=
$this
->
conn
->
quoteIdentifier
(
$
this
->
conn
->
formatter
->
getIndexName
(
$name
)
);
return
$this
->
conn
->
exec
(
'ALTER TABLE '
.
$table
.
' DROP CONSTRAINT '
.
$name
);
}
/**
* drop existing foreign key
*
* @param string $table name of table that should be used in method
* @param string $name name of the foreign key to be dropped
* @return void
*/
public
function
dropForeignKey
(
$table
,
$name
)
{
return
$this
->
dropConstraint
(
$table
,
$name
);
}
/**
* dropSequenceSql
* drop existing sequence
...
...
@@ -1000,9 +989,9 @@ class Doctrine_Export extends Doctrine_Connection_Module
public
function
exportSchema
(
$directory
=
null
)
{
if
(
$directory
!==
null
)
{
$models
=
Doctrine
_Facade
::
loadModels
(
$directory
);
$models
=
Doctrine
::
loadModels
(
$directory
);
}
else
{
$models
=
Doctrine
_Facade
::
getLoadedModels
();
$models
=
Doctrine
::
getLoadedModels
();
}
$this
->
exportClasses
(
$models
);
...
...
@@ -1080,7 +1069,7 @@ class Doctrine_Export extends Doctrine_Connection_Module
*/
public
function
exportClassesSql
(
array
$classes
)
{
$models
=
Doctrine
_Facade
::
getLoadedModels
(
$classes
);
$models
=
Doctrine
::
getLoadedModels
(
$classes
);
$sql
=
array
();
...
...
@@ -1159,9 +1148,9 @@ class Doctrine_Export extends Doctrine_Connection_Module
public
function
exportSql
(
$directory
=
null
)
{
if
(
$directory
!==
null
)
{
$models
=
Doctrine
_Facade
::
loadModels
(
$directory
);
$models
=
Doctrine
::
loadModels
(
$directory
);
}
else
{
$models
=
Doctrine
_Facade
::
getLoadedModels
();
$models
=
Doctrine
::
getLoadedModels
();
}
return
$this
->
exportClassesSql
(
$models
);
...
...
lib/Doctrine/Task/GenerateYamlFromDb.php
View file @
16933ef9
...
...
@@ -38,6 +38,6 @@ class Doctrine_Task_GenerateYamlFromDb extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
generateYamlFromDb
(
$this
->
getArgument
(
'yaml_schema_path'
));
Doctrine
::
generateYamlFromDb
(
$this
->
getArgument
(
'yaml_schema_path'
));
}
}
\ No newline at end of file
lib/Doctrine/Task/GenerateYamlFromModels.php
View file @
16933ef9
...
...
@@ -39,6 +39,6 @@ class Doctrine_Task_GenerateYamlFromModels extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
generateYamlFromModels
(
$this
->
getArgument
(
'yaml_schema_path'
),
$this
->
getArgument
(
'models_path'
));
Doctrine
::
generateYamlFromModels
(
$this
->
getArgument
(
'yaml_schema_path'
),
$this
->
getArgument
(
'models_path'
));
}
}
\ No newline at end of file
lib/Doctrine/Task/LoadData.php
View file @
16933ef9
...
...
@@ -39,7 +39,7 @@ class Doctrine_Task_LoadData extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
loadModels
(
$this
->
getArgument
(
'models_path'
));
Doctrine
_Facade
::
loadData
(
$this
->
getArgument
(
'data_fixtures_path'
));
Doctrine
::
loadModels
(
$this
->
getArgument
(
'models_path'
));
Doctrine
::
loadData
(
$this
->
getArgument
(
'data_fixtures_path'
));
}
}
\ No newline at end of file
lib/Doctrine/Task/LoadDummyData.php
View file @
16933ef9
...
...
@@ -39,7 +39,7 @@ class Doctrine_Task_LoadDummyData extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
loadModels
(
$this
->
getArgument
(
'models_path'
));
Doctrine
_Facade
::
loadDummyData
(
$this
->
getArgument
(
'append'
)
?
true
:
false
,
$this
->
getArgument
(
'num'
)
?
$this
->
getArgument
(
'num'
)
:
5
);
Doctrine
::
loadModels
(
$this
->
getArgument
(
'models_path'
));
Doctrine
::
loadDummyData
(
$this
->
getArgument
(
'append'
)
?
true
:
false
,
$this
->
getArgument
(
'num'
)
?
$this
->
getArgument
(
'num'
)
:
5
);
}
}
\ No newline at end of file
lib/Doctrine/Task/Migrate.php
View file @
16933ef9
...
...
@@ -38,6 +38,6 @@ class Doctrine_Task_Migrate extends Doctrine_Task
public
function
execute
()
{
Doctrine
_Facade
::
migrate
(
$this
->
getArgument
(
'version'
));
Doctrine
::
migrate
(
$this
->
getArgument
(
'version'
));
}
}
\ No newline at end of file
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