2010年11月1日星期一

[fw-db] Re: lastInsertId() not working?

Just after

$row->save();

to get the last inser id, simply do

$id = $row->id // (id is the name of the primary key)


--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/lastInsertId-not-working-tp949153p3022414.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: