protected function validateBefore2($stage) { return $this->hasTable('role_categories') && $this->hasTable('clients'); }