Hi, 
is there a way to tell create to fetch the inserted column after insertion, so 
that default values, defined in the database (or added by triggers) are 
present in the returned object ?

Currently I have to do

my $obj = $schema->resultset('XY')->create({...} );
$obj = $schema->resultset('XY')->find($obj->id);

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

would be nicer.

-- 
Rolf Schaufelberger


_______________________________________________
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