Skip to content

Commit

Permalink
Corrected coding standards Fix doctrine-extensions#1412
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre committed Sep 20, 2015
1 parent 8203214 commit 3af96e9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/Gedmo/ReferenceIntegrity/ReferenceIntegrityListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,11 @@ public function preRemove(EventArgs $args)
$refReflProp->setValue($refObj, $collection);
$om->persist($refObj);
}
} else {
if(is_object($refDoc)) {
$collection = $refReflProp->getValue($refDoc);
$collection->removeElement($object);
$refReflProp->setValue($refDoc, $collection);
$om->persist($refDoc);
}
} else if (is_object($refDoc)) {
$collection = $refReflProp->getValue($refDoc);
$collection->removeElement($object);
$refReflProp->setValue($refDoc, $collection);
$om->persist($refDoc);
}

break;
Expand Down

0 comments on commit 3af96e9

Please sign in to comment.