On Sat, Oct 2, 2010 at 8:16 PM, Bill Moseley <[email protected]> wrote:

> Seems like ->single (and thus find_or_create) should throw an exception if
> more than one row is returned, columns passed to find_or_create must satisfy
> a defined unique constraint, and if a single row is found any non-constraint
> columns specified should be updated.
>

find_or_create() should not update an already existing row.  That's what
update_or_create() is for.

Ronald
_______________________________________________
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