*/ final class StockTypeMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'warehousemgmt_stock_type_id' => ['name' => 'warehousemgmt_stock_type_id', 'type' => 'int', 'internal' => 'id'], 'warehousemgmt_stock_type_name' => ['name' => 'warehousemgmt_stock_type_name', 'type' => 'string', 'internal' => 'name'], ]; /** * Has many relation. * * @var array * @since 1.0.0 */ public const HAS_MANY = [ 'l11n' => [ 'mapper' => StockTypeL11nMapper::class, 'table' => 'warehousemgmt_stock_type_l11n', 'self' => 'warehousemgmt_stock_type_l11n_type', 'column' => 'content', 'external' => null, ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'warehousemgmt_stock_type'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'warehousemgmt_stock_type_id'; /** * Model to use by the mapper. * * @var class-string * @since 1.0.0 */ public const MODEL = StockType::class; }