diff --git a/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php b/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php index 82d5e9d49d..684b385edc 100644 --- a/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php +++ b/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php @@ -374,6 +374,6 @@ class ModelChoiceList extends ObjectChoiceList */ private function isInteger($col) { - return $col->getType() === \PDO::PARAM_INT; + return $col->getPdoType() === \PDO::PARAM_INT; } } diff --git a/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php b/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php index 75d2a4f731..b86ed421fd 100644 --- a/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php +++ b/src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php @@ -31,7 +31,9 @@ class ItemQuery public function getPrimaryKeys() { - return array('id'); + $cm = new ColumnMap('id', $this); + $cm->setType('INTEGER'); + return array('id' => $cm); } /** diff --git a/src/Symfony/Bridge/Propel1/Tests/Fixtures/ReadOnlyItemQuery.php b/src/Symfony/Bridge/Propel1/Tests/Fixtures/ReadOnlyItemQuery.php index 8c9677f33d..974e923dc9 100644 --- a/src/Symfony/Bridge/Propel1/Tests/Fixtures/ReadOnlyItemQuery.php +++ b/src/Symfony/Bridge/Propel1/Tests/Fixtures/ReadOnlyItemQuery.php @@ -22,6 +22,8 @@ class ReadOnlyItemQuery public function getPrimaryKeys() { - return array('id'); + $cm = new ColumnMap('id', $this); + $cm->setType('INTEGER'); + return array('id' => $cm); } }