2023-09-12
This commit is contained in:
@ -17,7 +17,10 @@ abstract class Model implements Define\Model
|
||||
|
||||
protected function runFactory(string $property): mixed
|
||||
{
|
||||
return $this->factories[$property]->run();
|
||||
if (isset($this->factories[$property])) {
|
||||
return $this->factories[$property]->run();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
|
Reference in New Issue
Block a user