0
このクエリは4つのテーブルは雄弁laravelに参加し
$this->db->select('*');
$this->db->from('countries cun');
$this->db->join('cities cit', 'cit.country_code=cun.country_code', 'left');
$this->db->join('city_states cits', 'cits.country_code=cun.country_code', 'left');
$this->db->join('timezone timz', 'timz.country_code=cun.country_code', 'left');
$this->db->where('cun.country',$id);
return $query = $this->db->get()->result();
私の質問は、雄弁なモデルではないクエリビルダ –
オーケーです。私は答えを更新しました。これをチェックし、これがあなたに役立つかどうか教えてください。 –
kya cheezおかげで運が良かった –