*/ final class LabelLayoutMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'labeling_layout_id' => ['name' => 'labeling_layout_id', 'type' => 'int', 'internal' => 'id'], 'labeling_layout_template' => ['name' => 'labeling_layout_template', 'type' => 'int', 'internal' => 'template'], ]; /** * Has many relation. * * @var array * @since 1.0.0 */ public const HAS_MANY = [ 'l11n' => [ 'mapper' => LabelLayoutL11nMapper::class, 'table' => 'labeling_layout_l11n', 'self' => 'labeling_layout_l11n_type', 'column' => 'content', 'external' => null, ], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ public const OWNS_ONE = [ 'template' => [ 'mapper' => CollectionMapper::class, 'external' => 'labeling_layout_template', ], ]; /** * Model to use by the mapper. * * @var class-string * @since 1.0.0 */ public const MODEL = LabelLayout::class; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'labeling_layout'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'labeling_layout_id'; }