magento colloction query

Solutions on MaxInterview for magento colloction query by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "magento colloction query"
Roy
24 Aug 2017
1$object->getCollection()
2->addStatusFilter(1)
3->addPriorityFilter('ASC')
4->addFieldToFilter('main_table.from_date', [['lteq' => $now], ['null' => true]])
5->addFieldToFilter('main_table.to_date', [['gteq' => $now], ['null' => true]])
6->addFieldToFilter('main_table.column', ['eq' => 87])
7->addCustomerGroupFilter($customerGroup)
8->addStoreFilter([$this->_storeManager->getStore()->getId()],false );