Example #1
0
 protected function _prepareCollection()
 {
     $collection = $this->amazonFactory->getObject('Account')->getCollection();
     $collection->getSelect()->joinLeft(['m' => $this->activeRecordFactory->getObject('Marketplace')->getResource()->getMainTable()], '(`m`.`id` = `second_table`.`marketplace_id`)', ['marketplace_title' => 'title']);
     $this->setCollection($collection);
     return parent::_prepareCollection();
 }
Example #2
0
 protected function _prepareCollection()
 {
     // Get collection of accounts
     $collection = $this->ebayFactory->getObject('Account')->getCollection();
     // Set collection to grid
     $this->setCollection($collection);
     return parent::_prepareCollection();
 }