public function addColumnsToUpdate(QueryBuilder $qb) { $status = $qb->expr()->literal($this->result['publication_status']); $qb->set('a.publicationStatus', $status); return $qb; }
/** * Update path of node * @param object $node - target node * @param object $parent - destination node */ protected function setPathData(QueryBuilder $qb, $node, $parent) { $nodeFullPath = $parent->getPropertyValue('fullPath') . $node->getPropertyValue('path') . '/'; $qb->set('node.fullPath', $qb->expr()->literal($nodeFullPath)); }