@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | |
511 | 511 | } else if ($metadata->hasAssociation($field)) { |
512 | 512 | // association |
513 | - if ($metadata->isSingleValuedAssociation($field) === FALSE && $this->configuration->useLazyAssociation() === FALSE) { |
|
513 | + if ($metadata->isSingleValuedAssociation($field) === FALSE && $this->configuration->useLazyAssociation() === FALSE) { |
|
514 | 514 | throw new Exceptions\InvalidMappingException("Association - [{$field}] is not valid, it must be a one-to-many relation or a string field - {$metadata->getName()}"); |
515 | 515 | } |
516 | 516 | } |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | $user = $this->getUser(); |
631 | 631 | |
632 | 632 | if ($classMetadata->hasAssociation($field)) { |
633 | - if ($user !== NULL && ! is_object($user)) { |
|
633 | + if ($user !== NULL && !is_object($user)) { |
|
634 | 634 | throw new Exceptions\InvalidArgumentException("Blame is reference, user must be an object"); |
635 | 635 | } |
636 | 636 |