src/Pok/PoolDBM/Mapping/ClassMetadata.php
public function addAssociation($isCollection, $field, $targetMultiModel, array $compatible = array(), array $references = array())
    {
        $mapping = new AssociationDefinition($field, $targetMultiModel, $isCollection);
        $mapping->setCompatible($compatible);
        $mapping->setReferences($references);

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

        return $mapping;
    }
public function addAssociation($isCollection, $field, $targetMultiModel, array $compatible = array(), array $references = array())
    {
        $mapping = new AssociationDefinition($field, $targetMultiModel, $isCollection);
        $mapping->setCompatible($compatible);
        $mapping->setReferences($references);

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

        return $mapping;
    }
public function addAssociation ( $ isCollection , $ field , $ targetMultiModel , array $ compatible = array ( ) , array $ references = array ( ) ) { $ mapping = new AssociationDefinition ( $ field , $ targetMultiModel , $ isCollection ) ; $ mapping -> setCompatible ( $ compatible ) ; $ mapping -> setReferences ( $ references ) ; $ this -> associationMappings [ $ field ] = $ mapping ; return $ mapping ; }
Adding associtation mapping between multi-model.

@param boolean $isCollection
@param string  $field
@param string  $targetMultiModel
@param array   $compatible       (optional)
@param array   $references       (optional)

@return AssociationDefinition
Adding associtation mapping between multi - model .