|
@@ 213-215 (lines=3) @@
|
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
if ($metadata->hasField($field)) { |
| 213 |
|
if (!$this->isValidField($metadata, $field) && $this->configuration->useLazyAssociation() === FALSE) { |
| 214 |
|
throw new Exceptions\InvalidMappingException("Field - [{$field}] type is not valid and must be 'string' or a one-to-many relation in class - {$metadata->getName()}"); |
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
} else if ($metadata->hasAssociation($field)) { |
| 218 |
|
// association |
|
@@ 219-221 (lines=3) @@
|
| 216 |
|
|
| 217 |
|
} else if ($metadata->hasAssociation($field)) { |
| 218 |
|
// association |
| 219 |
|
if ($metadata->isSingleValuedAssociation($field) === FALSE && $this->configuration->useLazyAssociation() === FALSE) { |
| 220 |
|
throw new Exceptions\InvalidMappingException("Association - [{$field}] is not valid, it must be a one-to-many relation or a string field - {$metadata->getName()}"); |
| 221 |
|
} |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
// Check for valid events |