Doctrine Problem: Couldn't get last insert identifier.
- by cnkt
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.