Code Duplication    Length = 4-7 lines in 2 locations

UnitOfWork.php 2 locations

@@ 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
938
                $assoc = $class->getAssociationMapping($propName);
939
                // Persistent collection was exchanged with the "originally"
@@ 898-901 (lines=4) @@
895
            $this->originalEntityData[$oid] = (object)$actualData;
896
            $changeSet                      = [];
897
            foreach ($actualData as $propName => $actualValue) {
898
                if (!$class->hasAssociation($propName)) {
899
                    $changeSet[$propName] = [null, $actualValue];
900
                    continue;
901
                }
902
                $assoc = $class->getAssociationMapping($propName);
903
                if ($assoc['isOwningSide'] && $assoc['type'] & ApiMetadata::TO_ONE) {
904
                    $changeSet[$propName] = [null, $actualValue];