@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | foreach ($data as $key => $value) { |
74 | 74 | if ($value instanceof Entity) { |
75 | - $value = $value->getRepository()->getSpace()->getIndex(0)->getValue($value->toArray()) ?: null; |
|
75 | + $value = $value->getRepository()->getSpace()->getIndex(0)->getValue($value->toArray()) ?: null; |
|
76 | 76 | } |
77 | 77 | $instance->$key = $value; |
78 | 78 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $index = $this->getSpace()->castIndex($params); |
91 | 91 | |
92 | 92 | if ($index === null) { |
93 | - throw new Exception("No index for params " . json_encode($params)); |
|
93 | + throw new Exception("No index for params ".json_encode($params)); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | $criteria = Criteria::index($index->id) |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | { |
176 | 176 | $instance = $this->findOne($params); |
177 | 177 | if (!$instance) { |
178 | - throw new Exception("No " . $this->getSpace()->name . ' found using ' . json_encode($params)); |
|
178 | + throw new Exception("No ".$this->getSpace()->name.' found using '.json_encode($params)); |
|
179 | 179 | } |
180 | 180 | return $instance; |
181 | 181 | } |