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;