Skip to content

Commit

Permalink
remove performDeleteOnModel
Browse files Browse the repository at this point in the history
  • Loading branch information
hootlex committed Mar 5, 2016
1 parent f31e3c3 commit 9e964d6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Moderatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,16 +232,4 @@ public function getModeratedByColumn()
public function getDates(){
return array_merge(parent::getDates(), [$this->getModeratedAtColumn()]);
}

/**
* Perform the actual delete query on this model instance.
* Ovveriding the \Illuminate\Database\Eloquent\Model::performDeleteOnModel method in order to
* allow the deletion of Moderatable objects of any status when using the delete() method on a loaded object
*
* @return void
*/
protected function performDeleteOnModel()
{
$this->setKeysForSaveQuery($this->newQueryWithoutScopes())->delete();
}
}

0 comments on commit 9e964d6

Please sign in to comment.