/** * Perform a DELETE instruction to remove the associated row with this * object in the database. * * This function doesn't check for association, it doesn't cleanup * dependencies, and doesn't throw an error when it fails. For all theses * reasons direct use of this method is highly discouraged, destroy() * should be called instead. As a result it is protected and prefixed by an * underline. A subclass that *really* want to make this method available * (meaning bypassing destroy()) would have to define public delete() * method forwarding the call to _delete(): * @code * public function delete() * { * return $this->_delete(); * } * @endcode * * @return * false on error, true otherwise */ protected function _delete() { $query = new No2_SQLQuery(get_class($this)); $query->query_on($this->__db_profile); return $query->id($this->id)->delete(); }