Привет, ребят, не подскажите, как в exposed правльно выставить сввязь на таблицу и произвести условие на текущую и связочную таблицу?
2 таблички связаны (
OffersTable[
id, offer_type]) и (
OfferGeoTable[
offerId])
OfferGeoTable.deleteWhere {
OfferGeoTable.offerId.eq(offer.id) and
(OfferGeoTable innerJoin OffersTable){
OfferGeoTable.offerId.equals(OffersTable.id)
}.eq(offer.offerType)
}
Ругается в таком случае:
Expression '(OfferGeoTable innerJoin OffersTable)' of type 'Join' cannot be invoked as a function. The function 'invoke()' is not found