* @since 1.0.0 */ protected static array $hasMany = [ 'sources' => [ 'mapper' => MediaMapper::class, 'table' => 'media_relation', 'external' => 'media_relation_dst', 'self' => 'media_relation_src', ], ]; /** * Model to use by the mapper. * * @var string * @since 1.0.0 */ protected static string $model = Collection::class; /** * Primary table. * * @var string * @since 1.0.0 */ protected static string $table = 'media'; /** * Created at. * * @var string * @since 1.0.0 */ protected static string $createdAt = 'media_created_at'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static string $primaryField = 'media_id'; }