Changed sql string to heredoc

This commit is contained in:
Rudi Grinberg 2012-09-12 11:59:27 -04:00
parent 6519512924
commit cebfdd6558
1 changed files with 5 additions and 3 deletions

View File

@ -147,9 +147,11 @@ class Application_Model_Show
{
$con = Propel::getConnection();
$sql = "SELECT subjs_id
FROM cc_show_hosts
WHERE show_id = :show_id";
$sql = <<<SQL
SELECT subjs_id
FROM cc_show_hosts
WHERE show_id = :show_id
SQL;
$hosts = Application_Common_Database::prepareAndExecute(
$sql, array( ':show_id' => $this->getId() ), 'all');