Thanks, that helps a lot.
So just to check—if target_type
is ‘post’, then I should join classification_results.target_id
to posts.id
, right?
And if the target_type
is something else, like ‘comment’, then I’d join it to the comments
table instead? Just want to make sure I’m joining to the right table based on the type.