Merge remote-tracking branch 'origin' into dev-sql-escape
This commit is contained in:
commit
def8decb4e
18 files changed
+246
-26
No files matched your search
@@ -30,7 +30,11 @@ class Relation implements \Ulmus\Annotation\Annotation {
|
||||
}
|
||||
|
||||
public function entity() {
|
||||
$e = $this->entity;
|
||||
try {
|
||||
$e = $this->entity;
|
||||
} catch (\Throwable $ex) {
|
||||
throw new \Exception("Your @Relation annotation seems to be missing an `entity` entry.");
|
||||
}
|
||||
|
||||
return new $e();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user