$model->insert(array(<br/>
'data1' => $data1,<br/>
'data2' => $data2,<br/>
));<br/>
Note:
This method may not return a meaningful or consistent result across different PDO drivers, because the underlying database may not even support the notion of auto-increment fields or sequences.
select IDENT_CURRENT('tableName');
или select SCOPE_IDENTITY();
после успешной вставки.