Jijo ha scritto:
hi ,
can anybody help me how to get last inserted id from database.I have used
lastInsertId() method.But its not working
Regards,
Jijo Anthony.
It gets returned by your $db->insert(); if your primary key is set
correctly.
Jamie Learmonth
Lead Developer
[EM
fTableClass' => 'Subsection',
'refColumns' => 'id')
);
public static function getSectionImageCount($sectionName)
{
$gallery = new ImageGallery();
$galleryImageRs = $gallery->find(1);
$galleryImage = $galleryImageRs->current();
Zend_Debug::dump($galleryImage->findDependentRowset('Image'));
}
}
Exception occurs when calling getSectionImageCount() from my controller.
Kind Regards,
Jamie Learmonth
Lead Developer
[EMAIL PROTECTED]
Boxlight Media Ltd.