Important

You are browsing the documentation for version 4.1 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Security Support ends in January 2023. Read version 5.0 (the latest LTS version) of the Oro documentation to get the updated 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.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;

/**
 * @var string
 *
 * @ConfigField(
 *      defaultValues={
 *          "importexport"={
 *              "order"=100
 *          }
 *      }
 * )
 */
protected $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.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;

/**
 * @var string
 *
 * @ConfigField(
 *      defaultValues={
 *          "importexport"={
 *              "identity"=true
 *          }
 *      }
 * )
 */
protected $field;

Excluded

The fields with this option cannot be exported.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;

/**
 * @var string
 *
 * @ConfigField(
 *      defaultValues={
 *          "importexport"={
 *              "excluded"=true
 *          }
 *      }
 * )
 */
protected $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.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;

/**
 * @var string
 *
 * @ConfigField(
 *      defaultValues={
 *          "importexport"={
 *              "full"=true
 *          }
 *      }
 * )
 */
protected $field;