public function addModel($field, $modelName, array $subFields = array(), $repository_method = null)
    {
        $mapping = new ModelDefinition($modelName, $field, $subFields);
        $mapping->setRepositoryMethod($repository_method);

        $this->fieldMappings[$field] = $mapping;

        return $mapping;
    }