On Mon, Aug 1, 2022 at 9:05 AM fvbe...@gmail.com
wrote:
> Hi,
>
> How can I count a many_to_many relations when retrieving the list?
>
> Example:
>
>
> # models
>
> class Artist < Sequel::Model(db[:artists])
> db[:artists]
>
Note that this db[:artists] call does nothing, you should
Hi,
How can I count a many_to_many relations when retrieving the list?
Example:
# models
class Artist < Sequel::Model(db[:artists])
db[:artists]
many_to_many(
:albums,
class: Album,
join_table: :artist_albums,
join_table_db: db,
left_key: