3 
 
        
      
      Magento 2: Chọn Trường Từ Truy vấn Bộ sưu tập
      
  Tôi có câu hỏi dưới đây. Tôi muốn chỉ chọn 1 trường từ bảng thay vì tất cả. $collection = $this->_collectionFactory->addFieldToFilter('status', 0)->load(); //$collection->getSelect()->column('id'); //$collection->getSelect()->from(['main_table' => $this->getMainTable()], array('main_table.id')); echo $collectionBallotSelect->getSelect()->__toString(); exit; Tôi muốn chọn chỉ idtrường từ bảng.