On Sun, Nov 25, 2007 at 07:00:35PM +0100, Cedric Boudin wrote:
> I don't want to use sequences or automatic pk generation. I create my
> own specific pk's with a trigger.

Erm, that's a form of automatic pk generation.

DBIC has to be able to get the PK somehow, so either (a) you have to pass it
to ->create, or (b) it has to be grabbable via $storage->last_insert_id.

Otherwise you'd end up with an object with no PK, which would make no sense
at all.

-- 
      Matt S Trout       Catalyst and DBIx::Class consulting and support -
   Technical Director      http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Christmas fun in collectable card game form -
                           http://www.shadowcat.co.uk/resources/2007_trading/

_______________________________________________
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