src/Search/Framework/Schema.php
public function attachField(SchemaField $field)
    {
        $id = $field->getId();
        $name = $field->getName();
        $this->_fields[$id] = $field;
        $this->_fieldNameMap[$name] = $id;
        return $this;
    }
public function attachField(SchemaField $field)
    {
        $id = $field->getId();
        $name = $field->getName();
        $this->_fields[$id] = $field;
        $this->_fieldNameMap[$name] = $id;
        return $this;
    }
public function attachField ( SchemaField $ field ) { $ id = $ field -> getId ( ) ; $ name = $ field -> getName ( ) ; $ this -> _fields [ $ id ] = $ field ; $ this -> _fieldNameMap [ $ name ] = $ id ; return $ this ; }
Associates a field with this schema.

@param SchemaField $field
The field being associated with the schema.

@return Schema
Associates a field with this schema .