Important

You are browsing the documentation for version 4.1 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.

Fields Configuration

Order

This option is used to configure a custom column order.

 1use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
 2
 3/**
 4 * @var string
 5 *
 6 * @ConfigField(
 7 *      defaultValues={
 8 *          "importexport"={
 9 *              "order"=100
10 *          }
11 *      }
12 * )
13 */
14protected $field;

Identity

The fields with this option are used to identify (search) the entity. It is possible to use multiple identity fields for one entity.

 1use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
 2
 3/**
 4 * @var string
 5 *
 6 * @ConfigField(
 7 *      defaultValues={
 8 *          "importexport"={
 9 *              "identity"=true
10 *          }
11 *      }
12 * )
13 */
14protected $field;

Excluded

The fields with this option cannot be exported.

 1use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
 2
 3/**
 4 * @var string
 5 *
 6 * @ConfigField(
 7 *      defaultValues={
 8 *          "importexport"={
 9 *              "excluded"=true
10 *          }
11 *      }
12 * )
13 */
14protected $field;

Full

All the fields of the related entity are exported. The fields with the [Excluded](#excluded) option are skipped. If full is set to false (the default value), only the fields with an identity will be exported.

 1use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
 2
 3/**
 4 * @var string
 5 *
 6 * @ConfigField(
 7 *      defaultValues={
 8 *          "importexport"={
 9 *              "full"=true
10 *          }
11 *      }
12 * )
13 */
14protected $field;