Context/FlatTreeContext.php
private function makeNode(&$row, &$tree)
    {
        $hasChildren = $this->propertyAccessor->getValue($row, "[{$this->options['children_column']}]");
        $weight      = $this->propertyAccessor->getValue($row, "[{$this->options['hierarchy_column']}]");

        $row['hasChildren'] = (bool)($hasChildren > 0);
        $row['weight']      = $weight;
        $tree[$row['id']]   = $row;
    }
private function makeNode(&$row, &$tree)
    {
        $hasChildren = $this->propertyAccessor->getValue($row, "[{$this->options['children_column']}]");
        $weight      = $this->propertyAccessor->getValue($row, "[{$this->options['hierarchy_column']}]");

        $row['hasChildren'] = (bool)($hasChildren > 0);
        $row['weight']      = $weight;
        $tree[$row['id']]   = $row;
    }
private function makeNode ( & $ row , & $ tree ) { $ hasChildren = $ this -> propertyAccessor -> getValue ( $ row , "[{$this->options['children_column']}]" ) ; $ weight = $ this -> propertyAccessor -> getValue ( $ row , "[{$this->options['hierarchy_column']}]" ) ; $ row [ 'hasChildren' ] = ( bool ) ( $ hasChildren > 0 ) ; $ row [ 'weight' ] = $ weight ; $ tree [ $ row [ 'id' ] ] = $ row ; }
Converts single row to flat-tree node

@param array $row
@param array $tree
Converts single row to flat - tree node