I've seen on SO that you can do multiple inserts without having to do them in a loop, with the createRowset and createRow methods.
My problem is, that I'm not sure in which class the createRowset method is defined. I have the following code, which fails with an 500 internal error:
$twitterUsersModel = new TwitterUsers($this->db_adapter);
$rowset = $twitterUsersModel->createRowset(); // this is the line that fails
foreach ($data as $d)
{
$row = $twitterUsersModel->createRow($d);
$rowset->addRow($row);
}
$rowset->save();
My TwitterUsers class extends the Zend_Db_Table_Abstract class, which (as far as I can tell) doesn't have a createRowset method (just tested with extending Zend_Db_Table, still not working). Is there any other way to do this from a Zend_Db_Table_Abstract extending class?