/**
  * {@inheritdoc}
  */
 protected function clarifySelector(RecordSelector $selector)
 {
     $selector->join($this->joinType(), $this->pivotTable() . ' AS ' . $this->pivotAlias(), [$this->getPivotKey(RecordEntity::THOUGHT_INNER_KEY) => $this->getParentKey()]);
     $this->pivotConditions($selector);
     $pivotOuterKey = $this->getPivotKey(RecordEntity::THOUGHT_OUTER_KEY);
     $selector->join($this->joinType(), $this->getTable() . ' AS ' . $this->getAlias(), [$pivotOuterKey => $this->getKey(RecordEntity::OUTER_KEY)]);
     $this->mountConditions($selector);
 }
 /**
  * {@inheritdoc}
  */
 protected function clarifySelector(RecordSelector $selector)
 {
     $selector->join($this->joinType(), $this->getTable() . ' AS ' . $this->getAlias(), [$this->getKey(RecordEntity::OUTER_KEY) => $this->getParentKey()]);
     $this->mountConditions($selector);
 }