public function toDelete() { if (!$this->isDelete) { user_error('SQLQuery::toDelete called when $isDelete is false. Use ' . 'toAppropriateExpression() instead', E_USER_WARNING); } parent::toDelete(); }