diff --git a/airtime_mvc/application/models/airtime/CcShow.php b/airtime_mvc/application/models/airtime/CcShow.php index 666fdb2d9..fac6aee00 100644 --- a/airtime_mvc/application/models/airtime/CcShow.php +++ b/airtime_mvc/application/models/airtime/CcShow.php @@ -281,9 +281,16 @@ class CcShow extends BaseCcShow { return $instanceIds; } - public function getFutureInstanceIds() { + /* + * Returns cc_show_instance ids where the start time is greater than + * the current time + * + * If a Criteria object is passed in Propel will always fetch the + * results from the database and not return a cached collection + */ + public function getFutureInstanceIds($criteria = null) { $instanceIds = array(); - foreach ($this->getFutureCcShowInstancess() as $ccShowInstance) { + foreach ($this->getFutureCcShowInstancess($criteria) as $ccShowInstance) { $instanceIds[] = $ccShowInstance->getDbId(); } return $instanceIds;