ignore %$self keys that are not schema methods
Rafael Kitover [Mon, 24 Aug 2009 08:23:32 +0000 (08:23 +0000)]
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});
         }
     }