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
dd71ec4b
Commit
dd71ec4b
authored
Oct 09, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for composite keys giving error.
parent
fe34a0d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Import.php
lib/Doctrine/Data/Import.php
+8
-1
No files found.
lib/Doctrine/Data/Import.php
View file @
dd71ec4b
...
...
@@ -121,7 +121,14 @@ class Doctrine_Data_Import extends Doctrine_Data
}
}
$obj
->
save
();
$identifier
=
is_array
(
$obj
->
getTable
()
->
getIdentifier
())
?
$obj
->
getTable
()
->
getIdentifier
()
:
array
(
$obj
->
getTable
()
->
getIdentifier
());
// We only want to save the record if it is a single primary key.
// We can't save the composite primary key because neither of the foreign keys have been created yet
// We will satisfy these relationships later and save the record.
if
(
count
(
$identifier
)
===
1
)
{
$obj
->
save
();
}
$primaryKeys
[
$rowKey
]
=
$obj
->
identifier
();
}
...
...
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