Fix potential ambiguous column issue.

Solves #202
This commit is contained in:
Janne Klouman 2017-07-16 13:47:55 +02:00
parent 4df49c8db7
commit fc9209523c

View File

@ -22,8 +22,7 @@ class CommentList extends HasManyList
public function __construct($parentClassName)
{
parent::__construct('Comment', 'ParentID');
parent::__construct('Comment', 'Comment"."ParentID');
// Ensure underlying DataQuery globally references the class filter
$this->dataQuery->setQueryParam('Foreign.Class', $parentClassName);