EasyAdmin Association Field =========================== This field displays the contents of a property used to associate Doctrine entities between them (of any type: one-to-one, one-to-many, etc.) In form pages this field is rendered using an advanced autocomplete widget based on `TomSelect`_ library. In :ref:`form pages (edit and new) ` it looks like this: .. image:: ../images/fields/field-association.png :alt: Default style of EasyAdmin association field In read-only pages (``index``and ``detail``) is displayed as a clickable link pointing to the ``detail`` action of the related entity. Basic Information ----------------- * **PHP Class**: ``EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField`` * **Doctrine DBAL Type** used to store this value: ``integer``, ``guid`` or any other type that you use to store the ID of the associated entity * **Symfony Form Type** used to render the field: `EntityType`_ * **Rendered as**: .. code-block:: html Options ------- ``autocomplete`` ~~~~~~~~~~~~~~~~ By default, the field loads all the possible values of the related entity. This creates "out of memory" errors when that entity has hundreds or thousands of values. Use this option to load values dynamically (via Ajax requests) based on user input:: yield AssociationField::new('...')->autocomplete(); ``renderAsNativeWidget`` ~~~~~~~~~~~~~~~~~~~~~~~~ By default, this field is rendered using an advanced JavaScript widget created with the `TomSelect`_ library. If you prefer to display a standard ``