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
ce6905cc
Commit
ce6905cc
authored
Oct 28, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Fixed commit order calculation.
parent
4fc1781d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
UnitOfWork.php
lib/Doctrine/ORM/UnitOfWork.php
+2
-4
No files found.
lib/Doctrine/ORM/UnitOfWork.php
View file @
ce6905cc
...
...
@@ -806,10 +806,8 @@ class UnitOfWork implements PropertyChangedListener
// See if there are any new classes in the changeset, that are not in the
// commit order graph yet (dont have a node).
$newNodes
=
array
();
$classesInChangeSet
=
array
();
foreach
(
$entityChangeSet
as
$oid
=>
$entity
)
{
$className
=
get_class
(
$entity
);
$classesInChangeSet
[
$className
]
=
true
;
$className
=
get_class
(
$entity
);
if
(
!
$this
->
_commitOrderCalculator
->
hasClass
(
$className
))
{
$class
=
$this
->
_em
->
getClassMetadata
(
$className
);
$this
->
_commitOrderCalculator
->
addClass
(
$class
);
...
...
@@ -820,7 +818,7 @@ class UnitOfWork implements PropertyChangedListener
// Calculate dependencies for new nodes
foreach
(
$newNodes
as
$class
)
{
foreach
(
$class
->
associationMappings
as
$assoc
)
{
if
(
$assoc
->
isOwningSide
&&
$assoc
->
isOneToOne
()
&&
isset
(
$classesInChangeSet
[
$assoc
->
targetEntityName
])
)
{
if
(
$assoc
->
isOwningSide
&&
$assoc
->
isOneToOne
())
{
$targetClass
=
$this
->
_em
->
getClassMetadata
(
$assoc
->
targetEntityName
);
if
(
!
$this
->
_commitOrderCalculator
->
hasClass
(
$targetClass
->
name
))
{
$this
->
_commitOrderCalculator
->
addClass
(
$targetClass
);
...
...
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