add update_or_create proxy method
Brandon L. Black [Thu, 2 Mar 2006 11:29:53 +0000 (11:29 +0000)]
lib/DBIx/Class/ResultSetProxy.pm

index 7672052..22336ae 100644 (file)
@@ -2,13 +2,14 @@ package DBIx::Class::ResultSetProxy;
 
 use base qw/DBIx::Class/;
 
-sub search         { shift->resultset_instance->search(@_);         }
-sub search_literal { shift->resultset_instance->search_literal(@_); }
-sub search_like    { shift->resultset_instance->search_like(@_);    }
-sub count          { shift->resultset_instance->count(@_);          }
-sub count_literal  { shift->resultset_instance->count_literal(@_);  }
-sub find           { shift->resultset_instance->find(@_);           }
-sub create         { shift->resultset_instance->create(@_);         }
-sub find_or_create { shift->resultset_instance->find_or_create(@_); }
+sub search           { shift->resultset_instance->search(@_);           }
+sub search_literal   { shift->resultset_instance->search_literal(@_);   }
+sub search_like      { shift->resultset_instance->search_like(@_);      }
+sub count            { shift->resultset_instance->count(@_);            }
+sub count_literal    { shift->resultset_instance->count_literal(@_);    }
+sub find             { shift->resultset_instance->find(@_);             }
+sub create           { shift->resultset_instance->create(@_);           }
+sub find_or_create   { shift->resultset_instance->find_or_create(@_);   }
+sub update_or_create { shift->resultset_instance->update_or_create(@_); }
 
 1;