Make doctrine load auto_increment value after save

niusernamey18

New Member
I'm using Doctrine for database abstraction. Now I'd like to get the \[code\]auto_increment\[/code\] primary key from the freshly-created (and \[code\]save()\[/code\]'d) object - but \[code\]$obj->toArray()\[/code\] shows me that the field is empty after calling \[code\]save()\[/code\].Is there a flag that I'm not aware of that does this? Or do I really have to query the object from the database?
 
Back
Top