public function getDefaultAttributes()
{
- return array_merge(parent::getDefaultAttributes(), ['attribute' => 'name', 'allow_null' => false, 'allow_multiples' => $this->_multiple]);
+ return array_merge(parent::getDefaultAttributes(), ['attribute' => 'name', 'allows_null' => false, 'allows_multiple' => $this->_multiple]);
}
protected function _getOptions()
$name = $this->getAttribute('attribute');
foreach ($items as $item) {
- $options[$item->getPrimaryKey()] = $item->{$name};
+ $options[$item->{$item->getPrimaryKey()}] = $item->{$name};
}
return $options;
}
public function getDefaultAttributes()
{
- return array_merge(parent::getDefaultAttributes(), ['options' => [], 'allow_null' => true, 'allow_multiples' => $this->_multiple]);
+ return array_merge(parent::getDefaultAttributes(), ['options' => [], 'allows_null' => true, 'allows_multiple' => $this->_multiple]);
}
public function getColumnData()