Hi torque-users,

I'm trying to get the primary key (generated by the databses using 
autoincrements)
after saving my object, but the id of the object is 0. 

object.save()
object.getId() ---> 0

If I select the object after saving it, I get the correct value.

object.save()
object = ObjectPeer.doSelect(...)
object.getId() ---> 4711

Im Using Torque 3.1.1 with MySql 4.1.1.
What can I do to get the id without selecting the object again.

Thanks for your answers,
Arndt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to