예제 #1
0
파일: Page.php 프로젝트: rapila/cms-base
 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;
 }