* @since 1.0.0 */ protected static array $columns = [ 'media_type_id' => ['name' => 'media_type_id', 'type' => 'int', 'internal' => 'id'], 'media_type_name' => ['name' => 'media_type_name', 'type' => 'string', 'internal' => 'name'], ]; /** * Has many relation. * * @var array * @since 1.0.0 */ protected static array $hasMany = [ 'title' => [ 'mapper' => MediaTypeL11nMapper::class, 'table' => 'media_type_l11n', 'self' => 'media_type_l11n_type', 'column' => 'title', 'conditional' => true, 'external' => null, ], ]; /** * Model to use by the mapper. * * @var string * @since 1.0.0 */ protected static string $model = MediaType::class; /** * Primary table. * * @var string * @since 1.0.0 */ protected static string $table = 'media_type'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static string $primaryField = 'media_type_id'; }