public function UpdateQueryBuilder(QQueryBuilder $objBuilder) { if ($this->objNode instanceof QQAssociationNode) { // The below works because all code generated association nodes will have a _ChildTableNode parameter. $this->objNode->_ChildTableNode->Join($objBuilder, true, $this->objCondition, $this->objSelect); } else { $this->objNode->Join($objBuilder, true, $this->objCondition, $this->objSelect); } $objBuilder->AddExpandAsArrayNode($this->objNode); }