for (Post post : forumPosts) {
System.out.println("Application.Application: " + post.createdAt());
}
System.out.println("Application.Application: Refetching single topic w/ PK");
Topic singleTopic = Topic.fetchRequiredTopic(editingContext, Topic.FORUM.eq(singleForum).and(ERXQ.equals("id", 633)));
System.out.println("Application.Application: " + singleTopic.title());
System.out.println("Application.Application: Fetching topic user");
User user = singleTopic.user();
System.out.println("Application.Application: " + user.displayName());
System.out.println("Application.Application: Fetching posts for topic (composite pk, which is kind of interesting)");
NSArray<Post> topicPosts = singleTopic.posts();
for (Post post : topicPosts) {
System.out.println("Application.Application: " + post.createdAt());
}
Post randomPost = topicPosts.lastObject();