@@ 125-133 (lines=9) @@ | ||
122 | * |
|
123 | * @return DenormalizationFieldMappingBuilderInterface |
|
124 | */ |
|
125 | public static function createReferenceMany( |
|
126 | string $name, |
|
127 | callable $repository |
|
128 | ): DenormalizationFieldMappingBuilderInterface { |
|
129 | $self = new self($name); |
|
130 | $self->fieldDenormalizer = new ReferenceManyFieldDenormalizer($repository, new PropertyAccessor($name)); |
|
131 | ||
132 | return $self; |
|
133 | } |
|
134 | ||
135 | /** |
|
136 | * @param string $name |
|
@@ 141-149 (lines=9) @@ | ||
138 | * |
|
139 | * @return DenormalizationFieldMappingBuilderInterface |
|
140 | */ |
|
141 | public static function createReferenceOne( |
|
142 | string $name, |
|
143 | callable $repository |
|
144 | ): DenormalizationFieldMappingBuilderInterface { |
|
145 | $self = new self($name); |
|
146 | $self->fieldDenormalizer = new ReferenceOneFieldDenormalizer($repository, new PropertyAccessor($name)); |
|
147 | ||
148 | return $self; |
|
149 | } |
|
150 | ||
151 | /** |
|
152 | * @param array $groups |