2
Magento 2: addFieldToFilter periksa NULL tidak berfungsi
Saya mencoba untuk mendapatkan catatan dari database yang berisi nilai parent_item_id NULL . $order_ = $this->_objectManager->create('Vendor\Module\Model\Saleslist') ->getCollection() ->addFieldToFilter( 'order_id', $orderId )->addFieldToFilter( 'parent_item_id', ['eq' => NULL] ); dan juga ingin menambahkan NULL yangparent_item_id sama atau '' string check.