Doctrine Problem: Couldn't get last insert identifier.

Posted by cnkt on Stack Overflow See other posts from Stack Overflow or by cnkt
Published on 2010-04-12T10:56:33Z Indexed on 2010/04/18 8:43 UTC
Read the original article Hit count: 521

Filed under:
|

When i try to save data to my model Doctrine throws this exception:

Message: Couldn't get last insert identifier. 

My table setup code is:

$this->hasColumn('id', 'integer', 4, array(
         'type' => 'integer',
         'length' => 4,
         'fixed' => false,
         'unsigned' => false,
         'primary' => true,
         'autoincrement' => true,
         ));

Please help. Thanks.

© Stack Overflow or respective owner

Related posts about doctrine

Related posts about orm