On Mon, Jan 28, 2008 at 05:32:17PM +0100, Rolf Schaufelberger wrote:
> Currently I have to do
> 
> my $obj = $schema->resultset('XY')->create({...} );
> $obj = $schema->resultset('XY')->find($obj->id);

or:

$obj->discard_changes;

> my $obj = $schema->resultset('XY')->create({...} , {fetch=>1});
> 
> would be nicer.

It would be 'nice' to not have to create-then-discard, but
discard_changes() is something I'm happy to live with - it's not /that/
painful IMO

-- 
Chisel Wright
e: [EMAIL PROTECTED]
w: http://www.herlpacker.co.uk/

  AFK, tornado...

_______________________________________________
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