@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $rf = new \ReflectionClass(get_class($this)); |
125 | 125 | $complex = $metadata->addEntityType($rf, $rf->getShortName(), $MetaNamespace); |
126 | 126 | $keyName = $this->getKeyName(); |
127 | - if(null != $keyName){ |
|
127 | + if (null != $keyName) { |
|
128 | 128 | $metadata->addKeyProperty($complex, $keyName, $this->mapping[$raw[$keyName]['type']]); |
129 | 129 | } |
130 | 130 | foreach ($raw as $key => $secret) { |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $relations = ['hasManyThrough', 'belongsToMany', 'hasMany', 'morphMany', 'morphToMany']; |
251 | 251 | if (in_array($relation, $relations)) { |
252 | 252 | //Collection or array of models (because Collection is Arrayable) |
253 | - $relationships["HasMany"][$method] = $relatedModel; |
|
253 | + $relationships["HasMany"][$method] = $relatedModel; |
|
254 | 254 | } elseif ($relation === "morphTo") { |
255 | 255 | // Model isn't specified because relation is polymorphic |
256 | 256 | $relationships["UnknownPolyMorphSide"][$method] = |