Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/UnitOfWork.php 2 locations

@@ 777-779 (lines=3) @@
774
                }
775
776
                // ignore inverse side of reference relationship
777
                if (isset($class->fieldMappings[$propName]['reference']) && $class->fieldMappings[$propName]['isInverseSide']) {
778
                    continue;
779
                }
780
781
                // Persistent collection was exchanged with the "originally"
782
                // created one. This can only mean it was cloned and replaced
@@ 713-715 (lines=3) @@
710
                    $actualValue = $actualData[$propName];
711
                }
712
                // ignore inverse side of reference relationship
713
                if (isset($class->fieldMappings[$propName]['reference']) && $class->fieldMappings[$propName]['isInverseSide']) {
714
                    continue;
715
                }
716
                $changeSet[$propName] = array(null, $actualValue);
717
            }
718
            $this->documentChangeSets[$oid] = $changeSet;