Added criteria parameter to CcShow->getFutureInstanceIds so we can retrieve results from database instead of cache
This commit is contained in:
parent
4a124a8faf
commit
a5704eac6e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue