문제

I am trying to select one item form the items table and join the second table (images). The table images will have multiple results for each item. The problem is that the result join is bringing just one result instead of an array with all images data.

The code

    $select = $this->select();
    $select->setIntegrityCheck(false);
    $select->from($this)
           ->joinLeft('items_images', 'items.item_id = image_item_id')
           ->where($where);
    $result =  $this->fetchRoll($select);

What I am missing?

Thanks

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top