I would like to get the id
of the last saved dataset in a JTable-Operation.
At the moment I got this:
// Create and populate an object.
$value = new stdClass();
$value->userid = (int)$userid;
$value->type = $data['type'];
// Insert the object into the user profile table.
$handle = JFactory::getDbo()->insertObject('#__bestia_handles', $value);
Now I would like to get the id
of this saved object.
$handle
only contains true
or false
.
How can I solve this problem?