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()
{
$con = Propel::getConnection();
$showId = $this->getId();
$sql = "SELECT day_offset, start_time FROM cc_show_rebroadcast "
."WHERE show_id = $showId "
."ORDER BY day_offset";
return $con->query($sql)->fetchAll();
$sql = <<<SQL
SELECT day_offset,
start_time
FROM cc_show_rebroadcast
WHERE show_id = :showId
ORDER BY day_offset
SQL;
return Application_Common_Database::prepareAndExecute( $sql,
array( ':showId' => $this->getId() ), 'all' );
}
/**