Hi All,
from documentation, it's clear how to make a single left join between two tables.
val q = for {(t, v) <- titles joinLeft volumes on (_.uid === _.titleUid)} yield (t, v)
Query q will, as expected, have entities: _1 of type Titles and _2 of type Rep[Option[Volumes]] since volumes can be null in db.
Further cascading is problematic:
val q = for {((t, v), c) <- titles joinLeft volumes on (_.uid === _.titleUid) joinLeft chapters on (_.uid === _.volumeUid)} yield ...
This won't work because _.uid === _.volumeUid is invalid given _.uid not existing.
According to various sources on the net, this shouldn't be an issue, but then again, sources tend to target different slick versions and 3.0 is still rather new. Does anyone have some clue on the issue?
To clarify, idea is to use two left joins to extract data from 3 cascading 1:n:n tables.
Thanks,
Bruno