Chart retunrs first record only... why?
Hi, I'm implementing a chart widget on which I want to display the usage of tags.
Models:
CommentTag
Comment
Relationship:
Many to many
Pivot table:
comment_comment_tag
The following shows only the first record.
Any advice, thank you.
3 Replies
return
needs to happen after foreach
, otherwise you exit the loop (and function) on the first passBeautiful! Thank you...