src/Pok/PoolDBM/Mapping/ClassMetadata.php
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;
    }
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;
    }
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 ; }
Map fields per model.

@param string $field             Manager name
@param string $modelName
@param array  $subFields         (optional)
@param string $repository_method (optional)

@return ModelDefinition
Map fields per model .