Bill Moseley wrote:
I'm wondering if find_or_create should throw an exception if a unique constraint does not exist or if the values passed to find_or_create do not include ALL the columns in the constraint.

DBIx::Class is a tool, it does not enforce "design cleanliness". Heck it
even works with pk-less tables if need be, there is a ton of crappy
preexisting schemas out there. To get what you want simply turn on
FATAL warnings and perl will DTRT :)

Btw how is the patch for find_or_create coming along?

Cheers

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to