@@ 98-106 (lines=9) @@ | ||
95 | * |
|
96 | * @return DenormalizationFieldMappingBuilderInterface |
|
97 | */ |
|
98 | public static function createReferenceMany( |
|
99 | string $name, |
|
100 | callable $repository |
|
101 | ): DenormalizationFieldMappingBuilderInterface { |
|
102 | $self = new self($name); |
|
103 | $self->fieldDenormalizer = new ReferenceManyFieldDenormalizer($repository, new PropertyAccessor($name)); |
|
104 | ||
105 | return $self; |
|
106 | } |
|
107 | ||
108 | /** |
|
109 | * @param string $name |
|
@@ 114-122 (lines=9) @@ | ||
111 | * |
|
112 | * @return DenormalizationFieldMappingBuilderInterface |
|
113 | */ |
|
114 | public static function createReferenceOne( |
|
115 | string $name, |
|
116 | callable $repository |
|
117 | ): DenormalizationFieldMappingBuilderInterface { |
|
118 | $self = new self($name); |
|
119 | $self->fieldDenormalizer = new ReferenceOneFieldDenormalizer($repository, new PropertyAccessor($name)); |
|
120 | ||
121 | return $self; |
|
122 | } |
|
123 | ||
124 | /** |
|
125 | * @param array $groups |