I'm using Doctrine for database abstraction. Now I'd like to get the auto_increment
primary key from the freshly-created (and save()
'd) object - but $obj->toArray()
shows me that the field is empty after calling save()
.
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?