"Aaron Trevena" <[EMAIL PROTECTED]> writes:

> On 25/01/2008, Jonathan Rockway <[EMAIL PROTECTED]> wrote:
> Can you do that with subsets of a result set - i.e. I have a resultset
> of a page of records, 20 need to have the "fantastic" flag set, 100
> need to have the state set from "pending" to approved.

Well, one resultset should contain the records that need to be
"fantastic", and another should contain the records that need to be
approved.  Then you update them as appropriate.

If this is a frequent operation, write a method in your ResultSet
class to do it.  Actually, you should do that anyway :)

Regards,
Jonathan Rockway

_______________________________________________
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