I've been googling for about 2 hours now and can't find an answer to this question. I'm trying to filter blog posts (using the silverstripe-blog module) by Author/MemberID. So far I've got:
public function MyRecentPosts() {
$posts = BlogPost::get()
->sort('PublishDate','desc')
->limit(2);
return $posts;
}
Obviously that only returns the most recent blog posts. I'm not sure I understand how to relate the Blog Post table with the BlogPost_Authors table...
Any advice would be greatly appreciated.