LMongo\Eloquent\Model::forceDelete PHP Method

forceDelete() public method

Force a hard delete on a soft deleted model.
public forceDelete ( ) : void
return void
    public function forceDelete()
    {
        $softDelete = $this->softDelete;
        // We will temporarily disable false delete to allow us to perform the real
        // delete operation against the model. We will then restore the deleting
        // state to what this was prior to this given hard deleting operation.
        $this->softDelete = false;
        $this->delete();
        $this->softDelete = $softDelete;
    }
Model