src/wcmf/lib/model/impl/AbstractNodeSerializer.php
protected function isMultiValued(Node $node, $role) {
    $isMultiValued = false;
    $mapper = $node->getMapper();
    if ($mapper->hasRelation($role)) {
      $relation = $mapper->getRelation($role);
      $isMultiValued = $relation->isMultiValued();
    }
    return $isMultiValued;
  }
protected function isMultiValued(Node $node, $role) {
    $isMultiValued = false;
    $mapper = $node->getMapper();
    if ($mapper->hasRelation($role)) {
      $relation = $mapper->getRelation($role);
      $isMultiValued = $relation->isMultiValued();
    }
    return $isMultiValued;
  }
protected function isMultiValued ( Node $ node , $ role ) { $ isMultiValued = false ; $ mapper = $ node -> getMapper ( ) ; if ( $ mapper -> hasRelation ( $ role ) ) { $ relation = $ mapper -> getRelation ( $ role ) ; $ isMultiValued = $ relation -> isMultiValued ( ) ; } return $ isMultiValued ; }
Check if a relation is multi valued
@param $node The Node that has the relation
@param $role The role of the relation
Check if a relation is multi valued