2
對於下列要求:Laravel 4.2工會
$gamer_id = DB::table('users_relations')->select('gamer_id')->where('user_id', '=', Auth::user()->id)->first();
$test_id = DB::table('users_relations')->select('gamer_id')->where('user_id', '=', 2)->first();
$results = $gamer_id->union($test_id)->get();
dd($results);
我有錯誤:
Symfony \ Component \ Debug \ Exception \ FatalErrorException
Call to undefined method stdClass::union()
有關的任何想法? 謝謝!
P.S.文檔 - >http://laravel.com/docs/queries#unions
是的,我只是看到了......謝謝ceejayoz –