code/database/behavior/recursable.php
public function getChildren()
    {
        $result = null;

        if($this->hasChildren())
        {
            $parent = $this->id;

            if(!$this->__children[$parent] instanceof DatabaseRowsetInterface)
            {
                $this->__children[$parent] = $this->getTable()->createRowset(array(
                    'data' => $this->__children[$parent]
                ));
            }

            $result = $this->__children[$parent];
        }

        return $result;
    }
public function getChildren()
    {
        $result = null;

        if($this->hasChildren())
        {
            $parent = $this->id;

            if(!$this->__children[$parent] instanceof DatabaseRowsetInterface)
            {
                $this->__children[$parent] = $this->getTable()->createRowset(array(
                    'data' => $this->__children[$parent]
                ));
            }

            $result = $this->__children[$parent];
        }

        return $result;
    }
public function getChildren ( ) { $ result = null ; if ( $ this -> hasChildren ( ) ) { $ parent = $ this -> id ; if ( ! $ this -> __children [ $ parent ] instanceof DatabaseRowsetInterface ) { $ this -> __children [ $ parent ] = $ this -> getTable ( ) -> createRowset ( array ( 'data' => $ this -> __children [ $ parent ] ) ) ; } $ result = $ this -> __children [ $ parent ] ; } return $ result ; }
Get the children

@return  DatabaseRowsetInterface|null
Get the children