protected function setContentStatus($contentId, $status) { /** @var $query \eZ\Publish\Core\Persistence\Database\UpdateQuery */ $query = $this->handler->createUpdateQuery(); $query->update('ezcontentobject')->set($this->handler->quoteColumn('status'), $query->bindValue($status, null, \PDO::PARAM_INT))->where($query->expr->eq($this->handler->quoteColumn('id'), $query->bindValue($contentId, null, \PDO::PARAM_INT))); $query->prepare()->execute(); }