On 2006-06-16 16:57:53 +0200, Daniel McBrearty wrote: > right. but this is part of the schema, which the module already > knows about - what is the point of passing it in here as an arg?
The documentation on find's key usage on trunk is admittedly sparse. The gist of it is that you can tell DBIx::Class about your unique constraints (or unique keys). Then find and friends will search on columns matching those in the unique constraints. Note also that the algorithm in the current development releases is improved: http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/ResultSet.pm#find -- Daniel Westermann-Clark _______________________________________________ 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/ Searchable Archive: http://www.mail-archive.com/[email protected]/
