@@ -15,11 +15,9 @@ |
||
| 15 | 15 | namespace IPub\DoctrineBlameable\Mapping\Driver; |
| 16 | 16 | |
| 17 | 17 | use Nette; |
| 18 | - |
|
| 19 | 18 | use Doctrine; |
| 20 | 19 | use Doctrine\Common; |
| 21 | 20 | use Doctrine\ORM; |
| 22 | - |
|
| 23 | 21 | use IPub; |
| 24 | 22 | use IPub\DoctrineBlameable; |
| 25 | 23 | use IPub\DoctrineBlameable\Exceptions; |
@@ -318,7 +318,7 @@ |
||
| 318 | 318 | $user = $this->getUser(); |
| 319 | 319 | |
| 320 | 320 | if ($classMetadata->hasAssociation($field)) { |
| 321 | - if ($user !== NULL && ! is_object($user)) { |
|
| 321 | + if ($user !== NULL && !is_object($user)) { |
|
| 322 | 322 | throw new Exceptions\InvalidArgumentException("Blame is reference, user must be an object"); |
| 323 | 323 | } |
| 324 | 324 | |