src/Search/Framework/SchemaField.php
public function setName(Schema $schema, $name)
    {
        $schema->removeField($this->_id);
        $this->_name = $name;
        $schema->attachField($this);
        return $this;
    }
public function setName(Schema $schema, $name)
    {
        $schema->removeField($this->_id);
        $this->_name = $name;
        $schema->attachField($this);
        return $this;
    }
public function setName ( Schema $ schema , $ name ) { $ schema -> removeField ( $ this -> _id ) ; $ this -> _name = $ name ; $ schema -> attachField ( $ this ) ; return $ this ; }
Sets the name of the field as stored in the index.

The schema is required so that its internal hash table can be updated to
reflect the field's new identifier.

@param Schema $schema
The schema that this field is attached to.
@param string $name
The name of the field as stored in the index.

@return SchemaField
Sets the name of the field as stored in the index .