Skip to content

Commit

Permalink
Fixed merging with NOTIFY policy.
Browse files Browse the repository at this point in the history
  • Loading branch information
romanb committed Jul 30, 2010
1 parent 69073c4 commit a25101a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -1444,10 +1444,11 @@ private function doMerge($entity, array &$visited, $prevManagedCopy = null, $ass
}
}
if ($class->isChangeTrackingNotify()) {
//TODO: put changed fields in changeset...?
// Just treat all properties as changed, there is no other choice.
$this->propertyChanged($managedCopy, $name, null, $prop->getValue($managedCopy));
}
}
if ( ! $class->isChangeTrackingDeferredImplicit()) {
if ($class->isChangeTrackingDeferredExplicit()) {
$this->scheduleForDirtyCheck($entity);
}
}
Expand Down

0 comments on commit a25101a

Please sign in to comment.