fix some formatting issue
This commit is contained in:
parent
6fb953645f
commit
ffd87591e1
@ -76,10 +76,9 @@ class ModelChoiceList extends ObjectChoiceList
|
|||||||
$choices = array();
|
$choices = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1 === count($this->identifier)) {
|
if ( 1 === count($this->identifier)
|
||||||
if ($this->isInteger(current($this->identifier))) {
|
&& $this->isInteger(current($this->identifier))) {
|
||||||
$this->identifierAsIndex = true;
|
$this->identifierAsIndex = true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
parent::__construct($choices, $labelPath, array(), $groupPath);
|
parent::__construct($choices, $labelPath, array(), $groupPath);
|
||||||
|
@ -33,6 +33,7 @@ class ItemQuery
|
|||||||
{
|
{
|
||||||
$cm = new ColumnMap('id', $this);
|
$cm = new ColumnMap('id', $this);
|
||||||
$cm->setType('INTEGER');
|
$cm->setType('INTEGER');
|
||||||
|
|
||||||
return array('id' => $cm);
|
return array('id' => $cm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ class ReadOnlyItemQuery
|
|||||||
{
|
{
|
||||||
$cm = new ColumnMap('id', $this);
|
$cm = new ColumnMap('id', $this);
|
||||||
$cm->setType('INTEGER');
|
$cm->setType('INTEGER');
|
||||||
|
|
||||||
return array('id' => $cm);
|
return array('id' => $cm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user