when run next query, nothing sometimes. hapens when no associated breeder founded flower sort.
for { sort <- flowersorts if sort.id === flowersortid sortdetails <- flowerssortdetails if sortdetails.id === flowersortid ftype <- flowertypes if sort.flowertypeid === ftype.id breeder <- breeders if breeder.id === sort.breederid lastbuy <- flowersortslastbuy if lastbuy.flowersortid === flowersortid } yield (sort, sortdetails, ftype, breeder, lastbuy)
i`m wondering possible somehow option[] breeder? try achive like:
for { sort <- flowersorts if sort.id === flowersortid sortdetails <- flowerssortdetails if sortdetails.id === flowersortid ftype <- flowertypes if sort.flowertypeid === ftype.id breeder: option[_] <- breeders if breeder.id === sort.breederid lastbuy: option[_] <- flowersortslastbuy if lastbuy.flowersortid === flowersortid } yield (sort, sortdetails, ftype, breeder, lastbuy)
i know how achive want without comprehensions.
Comments
Post a Comment