Hello, How can i get the last insert record ID ? Somethink like .... $model->save() $model->getLastInsert();
Last inserted ID is automatically assigned to the identity field, you just have to access it: $model->save() and then $model->id