Added criteria parameter to CcShow->getFutureInstanceIds so we can retrieve results from database instead of cache

This commit is contained in:
drigato 2014-08-20 16:35:59 -04:00
parent 08e82cb32e
commit 57c1e76dc7
1 changed files with 9 additions and 2 deletions

View File

@ -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;