public function delete($id)
    {
        if ($record = $this->find($id)) {
            if ($this->preDelete($id, $record)) {
                return $this->postDelete($id, $record->delete(), $record);
            }
        } else {
            $this->throwModelNotFoundException($id);
        }
    }
public function delete($id)
    {
        if ($record = $this->find($id)) {
            if ($this->preDelete($id, $record)) {
                return $this->postDelete($id, $record->delete(), $record);
            }
        } else {
            $this->throwModelNotFoundException($id);
        }
    }
public function delete ( $ id ) { if ( $ record = $ this -> find ( $ id ) ) { if ( $ this -> preDelete ( $ id , $ record ) ) { return $ this -> postDelete ( $ id , $ record -> delete ( ) , $ record ) ; } } else { $ this -> throwModelNotFoundException ( $ id ) ; } }
Delete a record by ID

@method delete
@param  integer          $id             The ID of the record

@return boolean
Delete a record by ID