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