Author: jablko Date: 2009-03-15 14:24:04 -0700 (Sun, 15 Mar 2009) New Revision: 2146
Modified: trunk/qubit/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/addon/sfPropelData.class.php Log: Commit temporary fix for: http://trac.symfony-project.org/ticket/5022 Modified: trunk/qubit/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/addon/sfPropelData.class.php =================================================================== --- trunk/qubit/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/addon/sfPropelData.class.php 2009-03-15 18:53:51 UTC (rev 2145) +++ trunk/qubit/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/addon/sfPropelData.class.php 2009-03-15 21:24:04 UTC (rev 2146) @@ -527,13 +527,12 @@ protected function fixOrderingOfForeignKeyDataInSameTable($resultsSets, $tableName, $column, $in = null) { - $stmt = $this->con->prepare('SELECT * FROM :table WHERE :column :where'); - $stmt->bindValue(':table', constant('Qubit'.$tableName.'::TABLE_NAME')); - $stmt->bindValue(':column', strtolower($column->getColumnName())); - $stmt->bindValue(':where', is_null($in) ? 'IS NULL' : 'IN ('.$in.')'); + $stmt = $this->con->prepare(' + SELECT * + FROM '.constant('Qubit'.$tableName.'::TABLE_NAME').' + WHERE '.strtolower($column->getColumnName()).' '.(is_null($in) ? 'IS NULL' : 'IN ('.$in.')')); + $stmt->execute(); - $stmt = $stmt->execute(); - $first = null; $in = array(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Qubit Toolkit Commits" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.ca/group/qubit-commits?hl=en -~----------~----~----~----~------~----~------~--~---
