FIX: not reseting
This commit is contained in:
@ -27,6 +27,7 @@ class Model {
|
|||||||
if (!class_exists($model_class)) {
|
if (!class_exists($model_class)) {
|
||||||
throw new \InvalidArgumentException('El modelo ' . $model_class . ' no existe.');
|
throw new \InvalidArgumentException('El modelo ' . $model_class . ' no existe.');
|
||||||
}
|
}
|
||||||
|
$this->reset();
|
||||||
$this->class = $model_class;
|
$this->class = $model_class;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user