How to show count of relationship from a belongs to many through relationship?
models:
song
playlist
artist
song n n artist
playlist n n song
a playlist has many artist through their songs. idk how to set that relationship in the playlist model. so im doing it like this:
file: playlistresource - inside table columns:
is there any potential improvements in the query?
if i knew how to set it, id do it like this. im trying to find out how to do it.
1 Reply
anyone? @ me if reply, thanks