Define and Implement delete

This commit is contained in:
2022-09-09 13:15:27 -04:00
parent 9834eb70a4
commit 3811e8224b
4 changed files with 12 additions and 0 deletions

View File

@ -61,4 +61,8 @@ abstract class Model implements ModelInterface
}
$this->isDirty();
}
public function delete(): void
{
$this->getFactory()->get(get_class($this))->delete($this);
}
}