List columns don't support morphTo (yet)
This commit is contained in:
parent
5ca55e149a
commit
e3ba89ba74
|
|
@ -415,8 +415,14 @@ class Lists extends WidgetBase
|
|||
* Relation column
|
||||
*/
|
||||
if (isset($column->relation)) {
|
||||
$table = $this->model->makeRelation($column->relation)->getTable();
|
||||
|
||||
// @todo Find a way...
|
||||
$relationType = $this->model->getRelationType($column->relation);
|
||||
if ($relationType == 'morphTo') {
|
||||
throw new ApplicationException('The relationship morphTo is not supported for list columns.');
|
||||
}
|
||||
|
||||
$table = $this->model->makeRelation($column->relation)->getTable();
|
||||
$sqlSelect = $this->parseTableName($column->sqlSelect, $table);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue