public function setToDeleted()
    {
        if ($this->isLoaded()) {
            $this->data['deleted'] = true;
            $this->markAsDirty();
        } else {
            $this->markAsDead();
        }
    }
public function setToDeleted()
    {
        if ($this->isLoaded()) {
            $this->data['deleted'] = true;
            $this->markAsDirty();
        } else {
            $this->markAsDead();
        }
    }
public function setToDeleted ( ) { if ( $ this -> isLoaded ( ) ) { $ this -> data [ 'deleted' ] = true ; $ this -> markAsDirty ( ) ; } else { $ this -> markAsDead ( ) ; } }
Sets the "deleted" property for the current model.

Note: This function is intended to be called only by a data mapper.

@return void
Sets the deleted property for the current model .