Define and Implement delete
This commit is contained in:
@ -61,4 +61,8 @@ abstract class Model implements ModelInterface
|
||||
}
|
||||
$this->isDirty();
|
||||
}
|
||||
public function delete(): void
|
||||
{
|
||||
$this->getFactory()->get(get_class($this))->delete($this);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user