【发布时间】:2015-07-21 11:12:24
【问题描述】:
我想将我当前的查询转换为ORM。但是,我不能清楚地了解如何加入。
我当前的查询:
$result=DB::table('tests')
->join('tests_matchs', 'tests_matchs.matched_tests_id', '=', 'tests.id')
->where('tests_matchs.user_id', '=', $UserId)
->where('tests_matchs.passed', '=', 'true')
->get();
【问题讨论】:
标签: mysql laravel laravel-4 orm laravel-5