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
b37bebdc
Commit
b37bebdc
authored
Apr 08, 2013
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix columns initialization in ForeignKeyConstraint
parent
caee9cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ForeignKeyConstraint.php
lib/Doctrine/DBAL/Schema/ForeignKeyConstraint.php
+4
-4
No files found.
lib/Doctrine/DBAL/Schema/ForeignKeyConstraint.php
View file @
b37bebdc
...
...
@@ -74,13 +74,13 @@ class ForeignKeyConstraint extends AbstractAsset implements Constraint
public
function
__construct
(
array
$localColumnNames
,
$foreignTableName
,
array
$foreignColumnNames
,
$name
=
null
,
array
$options
=
array
())
{
$this
->
_setName
(
$name
);
$this
->
_localColumnNames
=
array_combine
(
$localColumnNames
,
array_map
(
function
(
$column
)
{
$this
->
_localColumnNames
=
$localColumnNames
?
array_combine
(
$localColumnNames
,
array_map
(
function
(
$column
)
{
return
new
Identifier
(
$column
);
},
$localColumnNames
));
},
$localColumnNames
))
:
array
()
;
$this
->
_foreignTableName
=
new
Identifier
(
$foreignTableName
);
$this
->
_foreignColumnNames
=
array_combine
(
$foreignColumnNames
,
array_map
(
function
(
$column
)
{
$this
->
_foreignColumnNames
=
$foreignColumnNames
?
array_combine
(
$foreignColumnNames
,
array_map
(
function
(
$column
)
{
return
new
Identifier
(
$column
);
},
$foreignColumnNames
));
},
$foreignColumnNames
))
:
array
()
;
$this
->
_options
=
$options
;
}
...
...
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