We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca55e1 commit e3ba89bCopy full SHA for e3ba89b
modules/backend/widgets/Lists.php
@@ -415,8 +415,14 @@ public function prepareModel()
415
* Relation column
416
*/
417
if (isset($column->relation)) {
418
- $table = $this->model->makeRelation($column->relation)->getTable();
+
419
+ // @todo Find a way...
420
$relationType = $this->model->getRelationType($column->relation);
421
+ if ($relationType == 'morphTo') {
422
+ throw new ApplicationException('The relationship morphTo is not supported for list columns.');
423
+ }
424
425
+ $table = $this->model->makeRelation($column->relation)->getTable();
426
$sqlSelect = $this->parseTableName($column->sqlSelect, $table);
427
428
/*
0 commit comments