eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::updateLocationsContentVersionNo PHP Method

updateLocationsContentVersionNo() public method

Updates all Locations of content identified with $contentId with $versionNo.
public updateLocationsContentVersionNo ( mixed $contentId, mixed $versionNo )
$contentId mixed
$versionNo mixed
    public function updateLocationsContentVersionNo($contentId, $versionNo)
    {
        $query = $this->handler->createUpdateQuery();
        $query->update($this->handler->quoteTable('ezcontentobject_tree'))->set($this->handler->quoteColumn('contentobject_version'), $query->bindValue($versionNo, null, \PDO::PARAM_INT))->where($query->expr->eq($this->handler->quoteColumn('contentobject_id'), $contentId));
        $query->prepare()->execute();
    }