>
> 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
$dbix->resultset('Users')->search($hashref)->delete?


Thanks,

John (Zhuang) Li



_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/

Reply via email to