ignore %$self keys that are not schema methods
[catagits/Catalyst-Model-DBIC-Schema.git] / lib / Catalyst / Model / DBIC / Schema.pm
index 993c02c..982b3e3 100644 (file)
@@ -627,8 +627,7 @@ sub _pass_options_to_schema {
 
     for my $opt (keys %$self) {
         if (not exists $attributes{$opt}) {
-            die "Invalid schema option: $opt" unless $self->schema->can($opt);
-
+            next unless $self->schema->can($opt);
             $self->schema->$opt($self->{$opt});
         }
     }