From 23ccd75290a1373f5ea6c17588c4003d0aac2d81 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 7 Sep 2012 12:10:07 -0400 Subject: [PATCH] cc-4347: PDO getRbroadcastsRelative() --- airtime_mvc/application/models/Show.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index dc88e151d..0323ac330 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -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 = << $this->getId() ), 'all' ); } /**