Code Duplication    Length = 4-7 lines in 2 locations

UnitOfWork.php 2 locations

@@ 895-898 (lines=4) @@
892
            $this->originalEntityData[$oid] = $actualData;
893
            $changeSet                      = [];
894
            foreach ($actualData as $propName => $actualValue) {
895
                if (!$class->hasAssociation($propName)) {
896
                    $changeSet[$propName] = [null, $actualValue];
897
                    continue;
898
                }
899
                $assoc = $class->getAssociationMapping($propName);
900
                if ($assoc['isOwningSide'] && $assoc['type'] & ApiMetadata::TO_ONE) {
901
                    $changeSet[$propName] = [null, $actualValue];
@@ 926-932 (lines=7) @@
923
                    continue;
924
                }
925
                // if regular field
926
                if (!$class->hasAssociation($propName)) {
927
                    if ($isChangeTrackingNotify) {
928
                        continue;
929
                    }
930
                    $changeSet[$propName] = [$orgValue, $actualValue];
931
                    continue;
932
                }
933
934
                $assoc = $class->getAssociationMapping($propName);
935
                // Persistent collection was exchanged with the "originally"