| Extension: | OW Enhanced RelationList v1.0 | 
|---|---|
| Requires: | eZ Publish 5.x.x (not tested on 3.X) | 
| Author: | Open Wide http://www.openwide.fr | 
This bundle provides a data type for single or multiple relations with more advanced features than the default, such as min and max items in the relation
Bundle eZPublish 5 for OwEnhancedRelationList extension
see https://github.com/Open-Wide/OwEnhancedRelationList
At first, you have to enable the bundle :
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new OpenWide\Publish\EnhancedRelationListBundle\OpenWidePublishEnhancedRelationListBundle(),
    // ...
);Add an owenhancedrelationlist attribute in your content class with all the parameters you need.
{% set values = owenhancedrelationlist_ez_field_value(content, "my_field") %}// $container is an instance of "service_container"
$fieldValueHelper = $container->get( 'owenhancedrelationlist.field_value' );
$values = $fieldValueHelper->getFieldValue( $content, "my_field" );