Compare commits
2 Commits
ae172b902c
...
8dc0a27fd9
Author | SHA1 | Date | |
---|---|---|---|
8dc0a27fd9 | |||
5b1a61cd3b |
@ -27,6 +27,7 @@ class Model {
|
||||
if (!class_exists($model_class)) {
|
||||
throw new \InvalidArgumentException('El modelo ' . $model_class . ' no existe.');
|
||||
}
|
||||
$this->reset();
|
||||
$this->class = $model_class;
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user