Code Duplication    Length = 5-9 lines in 2 locations

lib/Doctrine/ORM/UnitOfWork.php 2 locations

@@ 664-668 (lines=5) @@
661
            $changeSet = [];
662
663
            foreach ($actualData as $propName => $actualValue) {
664
                if ( ! isset($class->associationMappings[$propName])) {
665
                    $changeSet[$propName] = [null, $actualValue];
666
667
                    continue;
668
                }
669
670
                $assoc = $class->associationMappings[$propName];
671
@@ 701-709 (lines=9) @@
698
                }
699
700
                // if regular field
701
                if ( ! isset($class->associationMappings[$propName])) {
702
                    if ($isChangeTrackingNotify) {
703
                        continue;
704
                    }
705
706
                    $changeSet[$propName] = [$orgValue, $actualValue];
707
708
                    continue;
709
                }
710
711
                $assoc = $class->associationMappings[$propName];
712