main/core/Repository/ResourceQueryBuilder.php
public function selectAsEntity($joinSingleRelatives = false, $class = null)
    {
        $this->init();
        $eol = PHP_EOL;

        if ($class) {
            $this->selectClause = 'SELECT resource'.PHP_EOL;
            $this->fromClause = "FROM {$class} resource{$eol} JOIN resource.resourceNode node{$eol}";
        } else {
            $this->selectClause = 'SELECT node'.PHP_EOL;
        }

        $this->joinSingleRelatives = $joinSingleRelatives;

        return $this;
    }
public function selectAsEntity($joinSingleRelatives = false, $class = null)
    {
        $this->init();
        $eol = PHP_EOL;

        if ($class) {
            $this->selectClause = 'SELECT resource'.PHP_EOL;
            $this->fromClause = "FROM {$class} resource{$eol} JOIN resource.resourceNode node{$eol}";
        } else {
            $this->selectClause = 'SELECT node'.PHP_EOL;
        }

        $this->joinSingleRelatives = $joinSingleRelatives;

        return $this;
    }
public function selectAsEntity ( $ joinSingleRelatives = false , $ class = null ) { $ this -> init ( ) ; $ eol = PHP_EOL ; if ( $ class ) { $ this -> selectClause = 'SELECT resource' . PHP_EOL ; $ this -> fromClause = "FROM {$class} resource{$eol} JOIN resource.resourceNode node{$eol}" ; } else { $ this -> selectClause = 'SELECT node' . PHP_EOL ; } $ this -> joinSingleRelatives = $ joinSingleRelatives ; return $ this ; }
Selects nodes as entities.

@param bool   $joinSingleRelatives Whether the creator, type and icon must be joined to the query
@param string $class

@return ResourceQueryBuilder
Selects nodes as entities .