*/ final class SupplierAttributeMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'suppliermgmt_supplier_attr_id' => ['name' => 'suppliermgmt_supplier_attr_id', 'type' => 'int', 'internal' => 'id'], 'suppliermgmt_supplier_attr_supplier' => ['name' => 'suppliermgmt_supplier_attr_supplier', 'type' => 'int', 'internal' => 'ref'], 'suppliermgmt_supplier_attr_type' => ['name' => 'suppliermgmt_supplier_attr_type', 'type' => 'int', 'internal' => 'type'], 'suppliermgmt_supplier_attr_value' => ['name' => 'suppliermgmt_supplier_attr_value', 'type' => 'int', 'internal' => 'value'], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ public const OWNS_ONE = [ 'type' => [ 'mapper' => SupplierAttributeTypeMapper::class, 'external' => 'suppliermgmt_supplier_attr_type', ], 'value' => [ 'mapper' => SupplierAttributeValueMapper::class, 'external' => 'suppliermgmt_supplier_attr_value', ], ]; /** * Model to use by the mapper. * * @var class-string * @since 1.0.0 */ public const MODEL = Attribute::class; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'suppliermgmt_supplier_attr'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'suppliermgmt_supplier_attr_id'; }