Added criteria parameter to CcShow->getFutureInstanceIds so we can retrieve results from database instead of cache
This commit is contained in:
parent
08e82cb32e
commit
57c1e76dc7
|
@ -281,9 +281,16 @@ class CcShow extends BaseCcShow {
|
||||||
return $instanceIds;
|
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();
|
$instanceIds = array();
|
||||||
foreach ($this->getFutureCcShowInstancess() as $ccShowInstance) {
|
foreach ($this->getFutureCcShowInstancess($criteria) as $ccShowInstance) {
|
||||||
$instanceIds[] = $ccShowInstance->getDbId();
|
$instanceIds[] = $ccShowInstance->getDbId();
|
||||||
}
|
}
|
||||||
return $instanceIds;
|
return $instanceIds;
|
||||||
|
|
Loading…
Reference in New Issue