getCollection() ->getApproved(); $transactions->addFieldToFilter('created_at', array('neq' => '0000-00-00 00:00:00')); $ts = gmdate("Y-m-d H:i:s"); $transactions->addFieldToFilter('created_at', array("from" => gmdate("Y-m-d H:i:s", strtotime("-1 day")), "to" => $ts)); if($transactions->getSize()) { foreach($transactions as $trn) { $trn->updateFromApi(); } } } return $this; } }