Per documentation, Doctrine_Record after saving should set id of newly created record as object property. In my case, new record is created, but not value is set on object (while database has this new id value). What has caused this?
$user1 = new ModelUsers();
$user1->save();
echo "last insert id=" . $user1->UserId;
PS UserId is configured in Model class with 'primary' => true, 'autoincrement' => true