Skip to content

Commit

Permalink
Hotfix incorrect function signature and usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nox7 committed Jul 12, 2021
1 parent 0d01f7c commit 055d863
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ORM/ModelClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ public function save():void{

/**
* Deletes a singular class model instance
* @param ModelInstance $modelClass
* @throws Exception
*/
public function delete(ModelInstance $modelClass):void{
public function delete():void{
$abyss = new Abyss;
$abyss->deleteRowByPrimaryKey($modelClass);
$abyss->deleteRowByPrimaryKey($this);
}

public static function getModel(): MySQLModelInterface
Expand Down

0 comments on commit 055d863

Please sign in to comment.