I'm inserting a new row into my database with this code:
$data = array(
'key' => 'value'
);
$this->getDbTable()->insert($data);
How can I get the row id of the this row that I just created?
Did you try this ? This also works fine.
//just after you call your insert($data) function .. use this
$lastInsertId = $this->getAdapter()->lastInsertId();