Does anyone know, if there is a bug in CRUD in delete operations. DB Adapter:
$this->_db = Zend_Registry::get("db");
I do like this:
$sql = "DELETE FROM premium_items WHERE id = '$id'";
$stmt = new Zend_Db_Statement_Pdo($this->_db, $sql);
return $stmt->execute();
and
$sql = "DELETE FROM premium_items WHERE id = ?";
$stmt = new Zend_Db_Statement_Pdo($this->_db, $sql);
return $stmt->execute(array($id));
and
$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 ?