Model->id
will that work?
e.g. from the book:
$this->Ingredient->save($newData);
$newIngredientId = $this->Ingredient->id;
On 30/07/11 18:53, Johkke wrote:
Is it possible to have the mysql_insert_id as virtual field of an model? I'm implementing an ticket system interface and ticket numbers given by the mysql_insert_id
No comments:
Post a Comment