1
我有了與我試圖建立在Laravel模型參數的多個子查詢的查詢。大廈查詢與查詢生成器或機鋒在Laravel 4
我是很新的Laravel 4,所以我真的很喜歡一些幫助,什麼是「最好」的方式來做到這一點。
,我需要複製的查詢是:
Select userId from facultyAvailability
where
:startDate between startDate and endDate
and :endDate between startDate and endDate
and userId NOT IN(
Select
userId
from
schedulerTrialSchedule
inner join `review`
on eventId=lectureId
where
trialId = :trialId
and (
startDate between :startDate and :endDate
or endDate between :startDate and :endDate
)
)
AND userId IN (
SELECT userId
from
faculty2FacultyCategory
where
categoryId in(:categoryIdList)
)
我真的不知道什麼方法鏈,共同打造這一點。任何幫助將不勝感激。