Browse files

hack around storing properties many times

  • Loading branch information...
1 parent 84c85c0 commit 457afda3e4752f0f5be3067c1e1f61d26578dedd @videlalvaro committed Oct 7, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Doctrine/ODM/PHPCR/UnitOfWork.php
View
6 lib/Doctrine/ODM/PHPCR/UnitOfWork.php
@@ -596,8 +596,10 @@ public function computeChangeSet(ClassMetadata $class, $document)
if ($class->isCollectionValuedAssociation($fieldName)) {
if (!$fieldValue instanceof PersistentCollection) {
// if its not a persistent collection and the original value changed. otherwise it could just be null
- $changed = true;
- break;
+ if($this->originalData[$oid][$fieldName] !== $fieldValue) {
+ $changed = true;
+ break;
+ }
} elseif ($fieldValue->changed()) {
$this->visitedCollections[] = $fieldValue;
$changed = true;

0 comments on commit 457afda

Please sign in to comment.