*/ final class ItemRelationMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'itemmgmt_item_relation_id' => ['name' => 'itemmgmt_item_relation_id', 'type' => 'int', 'internal' => 'id'], 'itemmgmt_item_relation_src' => ['name' => 'itemmgmt_item_relation_src', 'type' => 'int', 'internal' => 'source'], 'itemmgmt_item_relation_dst' => ['name' => 'itemmgmt_item_relation_dst', 'type' => 'int', 'internal' => 'destination'], 'itemmgmt_item_relation_type' => ['name' => 'itemmgmt_item_relation_type', 'type' => 'int', 'internal' => 'type'], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ public const OWNS_ONE = [ 'type' => [ 'mapper' => ItemRelationTypeMapper::class, 'external' => 'itemmgmt_item_relation_type', ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'itemmgmt_item_relation'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'itemmgmt_item_relation_id'; }