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
01ff4b24
Commit
01ff4b24
authored
Dec 14, 2011
by
jsor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always pass objects to platform methods and let platfom convert them to strings
parent
dc86017d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
CreateSchemaSqlCollector.php
...Doctrine/DBAL/Schema/Visitor/CreateSchemaSqlCollector.php
+1
-1
DropSchemaSqlCollector.php
lib/Doctrine/DBAL/Schema/Visitor/DropSchemaSqlCollector.php
+3
-3
No files found.
lib/Doctrine/DBAL/Schema/Visitor/CreateSchemaSqlCollector.php
View file @
01ff4b24
...
@@ -96,7 +96,7 @@ class CreateSchemaSqlCollector implements Visitor
...
@@ -96,7 +96,7 @@ class CreateSchemaSqlCollector implements Visitor
if
(
$this
->
_platform
->
supportsForeignKeyConstraints
())
{
if
(
$this
->
_platform
->
supportsForeignKeyConstraints
())
{
$this
->
_createFkConstraintQueries
=
array_merge
(
$this
->
_createFkConstraintQueries
,
$this
->
_createFkConstraintQueries
=
array_merge
(
$this
->
_createFkConstraintQueries
,
(
array
)
$this
->
_platform
->
getCreateForeignKeySQL
(
(
array
)
$this
->
_platform
->
getCreateForeignKeySQL
(
$fkConstraint
,
$localTable
->
getQuotedName
(
$this
->
_platform
)
$fkConstraint
,
$localTable
)
)
);
);
}
}
...
...
lib/Doctrine/DBAL/Schema/Visitor/DropSchemaSqlCollector.php
View file @
01ff4b24
...
@@ -143,15 +143,15 @@ class DropSchemaSqlCollector implements Visitor
...
@@ -143,15 +143,15 @@ class DropSchemaSqlCollector implements Visitor
$sql
=
array
();
$sql
=
array
();
foreach
(
$this
->
constraints
AS
$fkConstraint
)
{
foreach
(
$this
->
constraints
AS
$fkConstraint
)
{
$localTable
=
$this
->
constraints
[
$fkConstraint
];
$localTable
=
$this
->
constraints
[
$fkConstraint
];
$sql
[]
=
$this
->
platform
->
getDropForeignKeySQL
(
$fkConstraint
->
getQuotedName
(
$this
->
platform
),
$localTable
->
getQuotedName
(
$this
->
platform
)
);
$sql
[]
=
$this
->
platform
->
getDropForeignKeySQL
(
$fkConstraint
,
$localTable
);
}
}
foreach
(
$this
->
sequences
AS
$sequence
)
{
foreach
(
$this
->
sequences
AS
$sequence
)
{
$sql
[]
=
$this
->
platform
->
getDropSequenceSQL
(
$sequence
->
getQuotedName
(
$this
->
platform
)
);
$sql
[]
=
$this
->
platform
->
getDropSequenceSQL
(
$sequence
);
}
}
foreach
(
$this
->
tables
AS
$table
)
{
foreach
(
$this
->
tables
AS
$table
)
{
$sql
[]
=
$this
->
platform
->
getDropTableSQL
(
$table
->
getQuotedName
(
$this
->
platform
)
);
$sql
[]
=
$this
->
platform
->
getDropTableSQL
(
$table
);
}
}
return
$sql
;
return
$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