Code Duplication    Length = 4-7 lines in 2 locations

UnitOfWork.php 2 locations

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