[Dbix-class] update_or_insert from hash reference

John Li johnli at accessmedia.tv
Wed May 24 00:26:04 CEST 2006

> Will it use the primary key as declared in Users.pm? Or
> should I have to pass it as an extra attribute to the search
> call? (i.e. as in ->search( hashRef, { key => user_id } ) )
> I've already tried this and it didn't work ... but maybe I'm
> doing something wrong (again).
my $user = $dbix->resultset('Users')->update_or_create($hashref);


Just curious, Matt, why delete doesn't work the same way?
i.e. $dbix->resultset('Users')->delete($hashref) instead of


John (Zhuang) Li

More information about the Dbix-class mailing list