* @since 1.0.0 */ protected static array $columns = [ 'itemmgmt_item_id' => ['name' => 'itemmgmt_item_id', 'type' => 'int', 'internal' => 'id'], 'itemmgmt_item_no' => ['name' => 'itemmgmt_item_no', 'type' => 'string', 'internal' => 'number', 'autocomplete' => true], 'itemmgmt_item_info' => ['name' => 'itemmgmt_item_info', 'type' => 'string', 'internal' => 'info'], ]; protected static array $conditionals = [ ]; /** * Primary table. * * @var string * @since 1.0.0 */ protected static string $table = 'itemmgmt_item'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static string $primaryField = 'itemmgmt_item_id'; /** * Has many relation. * * @var array * @since 1.0.0 */ protected static array $hasMany = [ // 'media' => [ // 'mapper' => MediaMapper::class, /* mapper of the related object */ // 'table' => 'itemmgmt_item_media', /* table of the related object, null if no relation table is used (many->1) */ // 'external' => 'itemmgmt_item_media_dst', // 'self' => 'itemmgmt_item_media_src', // ], 'l11n' => [ 'mapper' => ItemL11nMapper::class, 'table' => 'itemmgmt_item_l11n', 'external' => 'itemmgmt_item_l11n_item', 'conditional' => true, 'self' => null, ], 'attributes' => [ 'mapper' => ItemAttributeMapper::class, 'table' => 'itemmgmt_item_attr', 'external' => 'itemmgmt_item_attr_item', 'conditional' => true, 'self' => null, ], ]; }