eee
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ abstract class HasBase implements \Database\Traits\Relation
|
||||
public function __call(string $name, array $arguments)
|
||||
{
|
||||
if ($name !== 'get') {
|
||||
$query = Context::get(Relation::class)->getQuery($this->name);
|
||||
$query = di(Relation::class)->getQuery($this->name);
|
||||
if (is_null($query)) {
|
||||
throw new \Exception('Unknown relation key: ' . $this->name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user