@@ -135,11 +135,11 @@ |
||
| 135 | 135 | $relation = $this->mapper->getRelation($name); |
| 136 | 136 | if ($relation instanceof ToOneInterface && |
| 137 | 137 | isset($attributes[$name]) && |
| 138 | - ! is_object($attributes[$name])) { |
|
| 138 | + !is_object($attributes[$name])) { |
|
| 139 | 139 | $attributes[$name] = $relation->getForeignMapper()->newEntity($attributes[$name]); |
| 140 | 140 | } elseif ($relation instanceof ToManyInterface && |
| 141 | - ! $relation instanceof ToOneInterface |
|
| 142 | - && ( ! isset($attributes[$name]) || is_array($attributes[$name]))) { |
|
| 141 | + !$relation instanceof ToOneInterface |
|
| 142 | + && (!isset($attributes[$name]) || is_array($attributes[$name]))) { |
|
| 143 | 143 | /** |
| 144 | 144 | * we also need to check against ToOneInterface because OneToOne relation extends |
| 145 | 145 | * OneToMany which implements ToOneInterface |
@@ -130,11 +130,11 @@ |
||
| 130 | 130 | $relation = $this->mapper->getRelation($name); |
| 131 | 131 | if ($relation instanceof ToOneInterface && |
| 132 | 132 | isset($attributes[$name]) && |
| 133 | - ! is_object($attributes[$name])) { |
|
| 133 | + !is_object($attributes[$name])) { |
|
| 134 | 134 | $attributes[$name] = $relation->getForeignMapper()->newEntity($attributes[$name]); |
| 135 | 135 | } elseif ($relation instanceof ToManyInterface && |
| 136 | - ! $relation instanceof ToOneInterface |
|
| 137 | - && ( ! isset($attributes[$name]) || is_array($attributes[$name]))) { |
|
| 136 | + !$relation instanceof ToOneInterface |
|
| 137 | + && (!isset($attributes[$name]) || is_array($attributes[$name]))) { |
|
| 138 | 138 | /** |
| 139 | 139 | * we also need to check against ToOneInterface because OneToOne relation extends |
| 140 | 140 | * OneToMany which implements ToOneInterface |