'type' => $this->getAttribute('column_type'),
'label' => $this->getAttribute('column_label', $this->getAttribute('label')),
'searchLogic' => $this->getAttribute('searchLogic'),
- 'format' => $this->getAttribute('column_format', null)
+ 'format' => $this->getAttribute('column_format', null),
+ 'orderable' => true,
];
+
return $res;
}
protected static $_doctrineTypesMapping = ['int' => 'integer'];
+ protected $connection = null;
protected $primaryKey = 'id';
public $timestamps = true;
public $clonable = true;
public function __construct(array $attributes = [])
{
-
$this->setup();
$this->fill($attributes);
}
public function setup()
{
+ if (null !== $this->connection) {
+ $this->setConnection($this->connection);
+ }
$this->setFields();
$this->postSetFields();
$this->bootIfNotBooted();