Code Duplication    Length = 4-7 lines in 2 locations

UnitOfWork.php 2 locations

@@ 901-904 (lines=4) @@
898
            $this->originalEntityData[$oid] = $actualData;
899
            $changeSet                      = [];
900
            foreach ($actualData as $propName => $actualValue) {
901
                if (!$class->hasAssociation($propName)) {
902
                    $changeSet[$propName] = [null, $actualValue];
903
                    continue;
904
                }
905
                $assoc = $class->getAssociationMapping($propName);
906
                if ($assoc['isOwningSide'] && $assoc['type'] & ApiMetadata::TO_ONE) {
907
                    $changeSet[$propName] = [null, $actualValue];
@@ 930-936 (lines=7) @@
927
                    continue;
928
                }
929
                // if regular field
930
                if (!$class->hasAssociation($propName)) {
931
                    if ($isChangeTrackingNotify) {
932
                        continue;
933
                    }
934
                    $changeSet[$propName] = [$orgValue, $actualValue];
935
                    continue;
936
                }
937
                $assoc = $class->getAssociationMapping($propName);
938
                // Persistent collection was exchanged with the "originally"
939
                // created one. This can only mean it was cloned and replaced