Active record - 3 results found, but only one being returned

后端 未结 3 2110
滥情空心
滥情空心 2021-01-28 15:14

The query below is returning that 3 results are available, but it is only returning one entry id.

How can I have the three entry_id\'s returned?

$this-&g         


        
3条回答
  •  死守一世寂寞
    2021-01-28 15:37

    Can you please replace this code

    $this->EE->db->group_by('portfolio_number'); //It will return only one row per portfolio_number
    $this->EE->db->group_by('portfolio_number,entry_id'); // It will return one row per portfolio_number and entry_id

    I think it will return 3 rows of different entry_id

提交回复
热议问题