Getting lastInsertId from model extended by Zend_Db_Table_Abstract
Tried to get it that way inside extended model:
$th开发者_运维问答is->lastInsertId();
and getting this error:
Fatal error: Call to undefined method InsertAd::lastInsertId()
Data is added successfully to the database, but i can't get auto_incremented key.
lastInsertId is a method of the adapter.
$id = $this->getAdapter()->lastInsertId($stuff);
精彩评论