cc-4347: PDO getRbroadcastsRelative()

This commit is contained in:
Rudi Grinberg 2012-09-07 12:10:07 -04:00
parent cfe0d7aa0c
commit 23ccd75290
1 changed files with 9 additions and 8 deletions

View File

@ -468,14 +468,15 @@ SQL;
*/ */
public function getRebroadcastsRelative() public function getRebroadcastsRelative()
{ {
$con = Propel::getConnection(); $sql = <<<SQL
SELECT day_offset,
$showId = $this->getId(); start_time
$sql = "SELECT day_offset, start_time FROM cc_show_rebroadcast " FROM cc_show_rebroadcast
."WHERE show_id = $showId " WHERE show_id = :showId
."ORDER BY day_offset"; ORDER BY day_offset
SQL;
return $con->query($sql)->fetchAll(); return Application_Common_Database::prepareAndExecute( $sql,
array( ':showId' => $this->getId() ), 'all' );
} }
/** /**