src/Graviton/GeneratorBundle/Definition/JsonDefinition.php
public function getSolrFields()
    {
        $solr = $this->def->getSolr();
        if (!$solr instanceof Solr) {
            return [];
        }

        $fields = [];
        foreach ($solr->getFields() as $field) {
            $fields[] = [
                'name' => $field->getName(),
                'type' => $field->getType(),
                'weight' => $field->getWeight()
            ];
        }

        return $fields;
    }
public function getSolrFields()
    {
        $solr = $this->def->getSolr();
        if (!$solr instanceof Solr) {
            return [];
        }

        $fields = [];
        foreach ($solr->getFields() as $field) {
            $fields[] = [
                'name' => $field->getName(),
                'type' => $field->getType(),
                'weight' => $field->getWeight()
            ];
        }

        return $fields;
    }
public function getSolrFields ( ) { $ solr = $ this -> def -> getSolr ( ) ; if ( ! $ solr instanceof Solr ) { return [ ] ; } $ fields = [ ] ; foreach ( $ solr -> getFields ( ) as $ field ) { $ fields [ ] = [ 'name' => $ field -> getName ( ) , 'type' => $ field -> getType ( ) , 'weight' => $ field -> getWeight ( ) ] ; } return $ fields ; }
gets information about solr

@return array|Schema\Solr
gets information about solr