Code Duplication    Length = 8-8 lines in 4 locations

src/Denormalizer/Relation/EmbedManyFieldDenormalizer.php 1 location

@@ 102-109 (lines=8) @@
99
        return $existEmbObject;
100
    }
101
102
    private function resolveProxy($refObject)
103
    {
104
        if (null !== $refObject && interface_exists('Doctrine\Common\Persistence\Proxy')
105
            && $refObject instanceof Proxy && !$refObject->__isInitialized()
106
        ) {
107
            $refObject->__load();
108
        }
109
    }
110
}
111

src/Denormalizer/Relation/EmbedOneFieldDenormalizer.php 1 location

@@ 89-96 (lines=8) @@
86
        return $existEmbObject;
87
    }
88
89
    private function resolveProxy($refObject)
90
    {
91
        if (null !== $refObject && interface_exists('Doctrine\Common\Persistence\Proxy')
92
            && $refObject instanceof Proxy && !$refObject->__isInitialized()
93
        ) {
94
            $refObject->__load();
95
        }
96
    }
97
}
98

src/Denormalizer/Relation/ReferenceManyFieldDenormalizer.php 1 location

@@ 84-91 (lines=8) @@
81
        $this->accessor->setValue($object, $refObjects);
82
    }
83
84
    private function resolveProxy($refObject)
85
    {
86
        if (null !== $refObject && interface_exists('Doctrine\Common\Persistence\Proxy')
87
            && $refObject instanceof Proxy && !$refObject->__isInitialized()
88
        ) {
89
            $refObject->__load();
90
        }
91
    }
92
}
93

src/Denormalizer/Relation/ReferenceOneFieldDenormalizer.php 1 location

@@ 71-78 (lines=8) @@
68
        $this->accessor->setValue($object, $refObject);
69
    }
70
71
    private function resolveProxy($refObject)
72
    {
73
        if (null !== $refObject && interface_exists('Doctrine\Common\Persistence\Proxy')
74
            && $refObject instanceof Proxy && !$refObject->__isInitialized()
75
        ) {
76
            $refObject->__load();
77
        }
78
    }
79
}
80