ModelBundle/Repository/NodeRepository.php
public function softDeleteNode($nodeId, $siteId)
    {
        $qb = $this->createQueryBuilder();
        $qb->updateMany()
            ->field('nodeId')->equals($nodeId)
            ->field('siteId')->equals($siteId)
            ->field('deleted')->set(true)
            ->getQuery()
            ->execute();
    }
public function softDeleteNode($nodeId, $siteId)
    {
        $qb = $this->createQueryBuilder();
        $qb->updateMany()
            ->field('nodeId')->equals($nodeId)
            ->field('siteId')->equals($siteId)
            ->field('deleted')->set(true)
            ->getQuery()
            ->execute();
    }
@param string $nodeId
@param string $siteId

@throws \Exception