/** * Override to check if no results are returned and load the baseCurrency as the first currency in that * scenario. */ public static function getAll($orderBy = null, $sortDescending = false, $modelClassName = null, $buildFirstCurrency = true) { $currencies = parent::getAll($orderBy, $sortDescending, $modelClassName); if (count($currencies) > 0 || $buildFirstCurrency == false) { return $currencies; } return array(self::makeBaseCurrency()); }