public function delete() { return (bool) $this->where(array($this->_modelDefinition->primaryKey => $this->getId()))->deleteAll(); }
/** * @return bool */ public function delete() { Hit::where(['game_user_id' => $this->id])->deleteAll(); return parent::delete(); }