public function delete($location = '') { if ($this->active == true) { $this->pushValidateError('active', 'Không thể xóa khi Active = true', 'error'); return false; } return parent::delete($location); // TODO: Change the autogenerated stub }