Fix potential ambiguous column issue.

Solves #202
This commit is contained in:
Jan Erik Klouman 2017-07-16 12:32:21 +02:00 committed by GitHub
parent b34a41e828
commit 1d0302a9ea
1 changed files with 1 additions and 2 deletions

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);