|
@@ 1214-1216 (lines=3) @@
|
| 1211 |
|
$methods[] = $code; |
| 1212 |
|
} |
| 1213 |
|
} elseif ($associationMapping['type'] & ClassMetadataInfo::TO_MANY) { |
| 1214 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'add', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1215 |
|
$methods[] = $code; |
| 1216 |
|
} |
| 1217 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1218 |
|
$methods[] = $code; |
| 1219 |
|
} |
|
@@ 1217-1219 (lines=3) @@
|
| 1214 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'add', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1215 |
|
$methods[] = $code; |
| 1216 |
|
} |
| 1217 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1218 |
|
$methods[] = $code; |
| 1219 |
|
} |
| 1220 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'get', $associationMapping['fieldName'], Collection::class)) { |
| 1221 |
|
$methods[] = $code; |
| 1222 |
|
} |
|
@@ 1220-1222 (lines=3) @@
|
| 1217 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1218 |
|
$methods[] = $code; |
| 1219 |
|
} |
| 1220 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'get', $associationMapping['fieldName'], Collection::class)) { |
| 1221 |
|
$methods[] = $code; |
| 1222 |
|
} |
| 1223 |
|
} |
| 1224 |
|
} |
| 1225 |
|
|