*/ final class AssetTypeMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'assetmgmt_asset_type_id' => ['name' => 'assetmgmt_asset_type_id', 'type' => 'int', 'internal' => 'id'], 'assetmgmt_asset_type_name' => ['name' => 'assetmgmt_asset_type_name', 'type' => 'string', 'internal' => 'title', 'autocomplete' => true], 'assetmgmt_asset_type_depreciation_duration' => ['name' => 'assetmgmt_asset_type_depreciation_duration', 'type' => 'int', 'internal' => 'depreciationDuration'], 'assetmgmt_asset_type_industry' => ['name' => 'assetmgmt_asset_type_industry', 'type' => 'int', 'internal' => 'industry'], ]; /** * Has many relation. * * @var array * @since 1.0.0 */ public const HAS_MANY = [ 'l11n' => [ 'mapper' => AssetTypeL11nMapper::class, 'table' => 'assetmgmt_asset_type_l11n', 'self' => 'assetmgmt_asset_type_l11n_type', 'column' => 'content', 'external' => null, ], ]; /** * Model to use by the mapper. * * @var class-string * @since 1.0.0 */ public const MODEL = AssetType::class; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'assetmgmt_asset_type'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'assetmgmt_asset_type_id'; }