Does anyone know, if there is a bug in CRUD in delete operations. DB Adapter:
$this->_db = Zend_Registry::get("db");
我也这样做:
$sql = "DELETE FROM premium_items WHERE id = $id ";
$stmt = new Zend_Db_Statement_Pdo($this->_db, $sql);
return $stmt->execute();
以及
$sql = "DELETE FROM premium_items WHERE id = ?";
$stmt = new Zend_Db_Statement_Pdo($this->_db, $sql);
return $stmt->execute(array($id));
以及
$this->_db->delete( premium_items , "id = $id ");
Each variant works without any errors but does not do what it has to do. What can I do in such situation ?