tapac
09/04/2017, 6:58 AMval posts by PostModel via Posts
with your schema, because there is not references in Posts to both Posts and Page tables.
If you want to get one page to many posts relationship then you should add page field to Posts:
object Posts : LongIdTable() {
...
val page = reference("page, Pages)
}
class PageModel.... {
...
val posts by PostModel referrersOn Posts.page
}