Exemplo n.º 1
0
 public function getChildren($oCriteria = null, PropelPDO $oConnection = null)
 {
     if ($oCriteria !== null) {
         $aResult = parent::getChildren($oCriteria, $oConnection);
         foreach ($aResult as $oChild) {
             $oChild->aNestedSetParent = $this;
         }
         return $aResult;
     }
     if ($this->collNestedSetChildren === null) {
         parent::getChildren($oCriteria, $oConnection);
         foreach ($this->collNestedSetChildren as $oChild) {
             $oChild->aNestedSetParent = $this;
         }
     }
     return $this->collNestedSetChildren;
 }