Fix model create annotations
[MAILPOET-2535]
This commit is contained in:
committed by
Jack Kitterhing
parent
e252118d2b
commit
25b2edab8a
@ -138,10 +138,14 @@ class Model extends \Sudzy\ValidModel {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool|static
|
||||
* @return static
|
||||
*/
|
||||
static function create() {
|
||||
return parent::create();
|
||||
$created = parent::create();
|
||||
if (is_bool($created)) {
|
||||
throw new \Exception('ORM is not initialised');
|
||||
}
|
||||
return $created;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user