|
@@ 1220-1222 (lines=3) @@
|
| 1217 |
|
$methods[] = $code; |
| 1218 |
|
} |
| 1219 |
|
} elseif ($associationMapping['type'] & ClassMetadataInfo::TO_MANY) { |
| 1220 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'add', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1221 |
|
$methods[] = $code; |
| 1222 |
|
} |
| 1223 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1224 |
|
$methods[] = $code; |
| 1225 |
|
} |
|
@@ 1223-1225 (lines=3) @@
|
| 1220 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'add', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1221 |
|
$methods[] = $code; |
| 1222 |
|
} |
| 1223 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1224 |
|
$methods[] = $code; |
| 1225 |
|
} |
| 1226 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'get', $associationMapping['fieldName'], Collection::class)) { |
| 1227 |
|
$methods[] = $code; |
| 1228 |
|
} |
|
@@ 1226-1228 (lines=3) @@
|
| 1223 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) { |
| 1224 |
|
$methods[] = $code; |
| 1225 |
|
} |
| 1226 |
|
if ($code = $this->generateEntityStubMethod($metadata, 'get', $associationMapping['fieldName'], Collection::class)) { |
| 1227 |
|
$methods[] = $code; |
| 1228 |
|
} |
| 1229 |
|
} |
| 1230 |
|
} |
| 1231 |
|
|