Using Propel, I can save an object using
$user = new User;
$user->setName('Test');
$user->save();
$user->getId()
will contain the ID of the inserted object. But this will only work if I use autoincremented ID values.
Is there any way I can get this to work when the IDs are generated by a function?
I can append RETURNING id
to the end of the insert queries to return the ID, but I'm not sure whether I can get this data back into the Propel User object.