fix some formatting issue

This commit is contained in:
woodspire 2012-12-05 15:30:04 -05:00
parent 6fb953645f
commit ffd87591e1
3 changed files with 5 additions and 4 deletions

View File

@ -76,10 +76,9 @@ class ModelChoiceList extends ObjectChoiceList
$choices = array();
}
if (1 === count($this->identifier)) {
if ($this->isInteger(current($this->identifier))) {
$this->identifierAsIndex = true;
}
if ( 1 === count($this->identifier)
&& $this->isInteger(current($this->identifier))) {
$this->identifierAsIndex = true;
}
parent::__construct($choices, $labelPath, array(), $groupPath);

View File

@ -33,6 +33,7 @@ class ItemQuery
{
$cm = new ColumnMap('id', $this);
$cm->setType('INTEGER');
return array('id' => $cm);
}

View File

@ -24,6 +24,7 @@ class ReadOnlyItemQuery
{
$cm = new ColumnMap('id', $this);
$cm->setType('INTEGER');
return array('id' => $cm);
}
}