public function attachField(SchemaField $field)
    {
        $id = $field->getId();
        $name = $field->getName();
        $this->_fields[$id] = $field;
        $this->_fieldNameMap[$name] = $id;
        return $this;
    }