I’m trying to delete a Row, can anyone tell me the proper syntax for this ?
class Application_Model_Event extends Zend_Db_Table_Abstract {
protected $_name = 'xx';
protected $_primary = 'xx';
public function deleteEvent ( $xx) {
$this->delete( $this->select()->where('idEvent = ?', '8'));
}
}
No, the delete() function just takes a WHERE condition.
Unfortunately, the method doesn’t understand the two-argument form like Select objects do. So if you want to interpolate variables into it, you have to do it in two steps: