src/Modelling/ApiModel.php
public function delete()
    {
        if ($this->isNewRecord()) {
            throw new DeleteModelException("New models can't be deleted.");
        }

        $this->beforeDelete();
        $this->raiseEvent("BeforeDelete");

        $this->Deleted = true;
        $this->save();

        $this->afterDelete();
        $this->raiseEvent("AfterDelete");
    }
public function delete()
    {
        if ($this->isNewRecord()) {
            throw new DeleteModelException("New models can't be deleted.");
        }

        $this->beforeDelete();
        $this->raiseEvent("BeforeDelete");

        $this->Deleted = true;
        $this->save();

        $this->afterDelete();
        $this->raiseEvent("AfterDelete");
    }
public function delete ( ) { if ( $ this -> isNewRecord ( ) ) { throw new DeleteModelException ( "New models can't be deleted." ) ; } $ this -> beforeDelete ( ) ; $ this -> raiseEvent ( "BeforeDelete" ) ; $ this -> Deleted = true ; $ this -> save ( ) ; $ this -> afterDelete ( ) ; $ this -> raiseEvent ( "AfterDelete" ) ; }
Replaces the standard delete by flagging the entry deleted instead.
Replaces the standard delete by flagging the entry deleted instead .