Example #1
0
 public function addColumnsToUpdate(QueryBuilder $qb)
 {
     $status = $qb->expr()->literal($this->result['publication_status']);
     $qb->set('a.publicationStatus', $status);
     return $qb;
 }
Example #2
0
 /**
  * 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));
 }