src/Sulu/Component/Rest/ListBuilder/Doctrine/DoctrineListBuilder.php
private function getSelectAs(DoctrineFieldDescriptorInterface $field, $hidden = false)
    {
        $select = $field->getSelect() . ' AS ';

        if ($hidden) {
            $select .= 'HIDDEN ';
        }

        return $select . $field->getName();
    }
private function getSelectAs(DoctrineFieldDescriptorInterface $field, $hidden = false)
    {
        $select = $field->getSelect() . ' AS ';

        if ($hidden) {
            $select .= 'HIDDEN ';
        }

        return $select . $field->getName();
    }
private function getSelectAs ( DoctrineFieldDescriptorInterface $ field , $ hidden = false ) { $ select = $ field -> getSelect ( ) . ' AS ' ; if ( $ hidden ) { $ select .= 'HIDDEN ' ; } return $ select . $ field -> getName ( ) ; }
Get select as from doctrine field descriptor.

@param DoctrineFieldDescriptorInterface $field
@param bool $hidden

@return string
Get select as from doctrine field descriptor .