Code Duplication    Length = 4-7 lines in 2 locations

UnitOfWork.php 2 locations

@@ 896-899 (lines=4) @@
893
            $this->originalEntityData[$oid] = (object)$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];
@@ 928-934 (lines=7) @@
925
                    continue;
926
                }
927
                // if regular field
928
                if (!$class->hasAssociation($propName)) {
929
                    if ($isChangeTrackingNotify) {
930
                        continue;
931
                    }
932
                    $changeSet[$propName] = [$orgValue, $actualValue];
933
                    continue;
934
                }
935
936
                $assoc = $class->getAssociationMapping($propName);
937
                // Persistent collection was exchanged with the "originally"