|
@@ 290-298 (lines=9) @@
|
| 287 |
|
$this->fieldNames[$mapping['api_field']] = $mapping['field']; |
| 288 |
|
|
| 289 |
|
// Complete id mapping |
| 290 |
|
if (isset($mapping['id']) && $mapping['id'] === true) { |
| 291 |
|
if (!in_array($mapping['field'], $this->identifier, true)) { |
| 292 |
|
$this->identifier[] = $mapping['field']; |
| 293 |
|
} |
| 294 |
|
// Check for composite key |
| 295 |
|
if (!$this->isIdentifierComposite && count($this->identifier) > 1) { |
| 296 |
|
$this->isIdentifierComposite = true; |
| 297 |
|
} |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
} |
| 301 |
|
|
|
@@ 421-432 (lines=12) @@
|
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
// Complete id mapping |
| 421 |
|
if (isset($mapping['id']) && $mapping['id'] === true) { |
| 422 |
|
|
| 423 |
|
if (!in_array($mapping['field'], $this->identifier, true)) { |
| 424 |
|
$this->identifier[] = $mapping['field']; |
| 425 |
|
$this->containsForeignIdentifier = true; |
| 426 |
|
} |
| 427 |
|
|
| 428 |
|
// Check for composite key |
| 429 |
|
if (!$this->isIdentifierComposite && count($this->identifier) > 1) { |
| 430 |
|
$this->isIdentifierComposite = true; |
| 431 |
|
} |
| 432 |
|
} |
| 433 |
|
|
| 434 |
|
// Mandatory and optional attributes for either side |
| 435 |
|
if (null !== $mapping['mappedBy']) { |