You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the followers alright, but as for the following , I get a wrong result: it returns an array with a single item which is the User itself, whereas in the database I see 3 other users as following.
this is the generated query extracted from the logs:
I am implementing a social network where a
User
can follow another user. So I have aFollow
model:and in the
User
class I create the M:M relation:Now when I fetch a
User
like so:I get the
followers
alright, but as for thefollowing
, I get a wrong result: it returns an array with a single item which is theUser
itself, whereas in the database I see 3 other users as following.this is the generated query extracted from the logs:
and finally, here's an excerpt from the tables showing the
Follow
records this particular user is involved in, hence expected 3 following.The text was updated successfully, but these errors were encountered: