I found the error in my latest commit. This pass the test suite.

This commit is contained in:
Felix Labrecque 2012-12-04 10:48:16 -05:00
parent cf8a6c00f3
commit 0e4419ba67
3 changed files with 7 additions and 3 deletions

View File

@ -374,6 +374,6 @@ class ModelChoiceList extends ObjectChoiceList
*/
private function isInteger($col)
{
return $col->getType() === \PDO::PARAM_INT;
return $col->getPdoType() === \PDO::PARAM_INT;
}
}

View File

@ -31,7 +31,9 @@ class ItemQuery
public function getPrimaryKeys()
{
return array('id');
$cm = new ColumnMap('id', $this);
$cm->setType('INTEGER');
return array('id' => $cm);
}
/**

View File

@ -22,6 +22,8 @@ class ReadOnlyItemQuery
public function getPrimaryKeys()
{
return array('id');
$cm = new ColumnMap('id', $this);
$cm->setType('INTEGER');
return array('id' => $cm);
}
}