ModelBundle/DataFixtures/MongoDB/LoadContentTypeData.php
protected function generateField($fieldType, $fieldId, array $labels)
    {
        $field = new FieldType();
        $field->setType($fieldType);
        $field->setFieldId($fieldId);
        $field->setDefaultValue(null);
        $field->setSearchable(true);
        $field->setLabels($labels);

        return $field;
    }
protected function generateField($fieldType, $fieldId, array $labels)
    {
        $field = new FieldType();
        $field->setType($fieldType);
        $field->setFieldId($fieldId);
        $field->setDefaultValue(null);
        $field->setSearchable(true);
        $field->setLabels($labels);

        return $field;
    }
Generate a field type

@param string $fieldType
@param string $fieldId
@param array $labels

@return FieldType