Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function clarifySelector(Selector $selector)
 {
     $selector->join($this->joinType(), $this->getTable() . ' AS ' . $this->getAlias(), [$this->getKey(RecordEntity::OUTER_KEY) => $this->getParentKey()]);
     $this->mountConditions($selector);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected function clarifySelector(Selector $selector)
 {
     $selector->join($this->joinType(), $this->getPivotTable() . ' AS ' . $this->getPivotAlias(), [$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);
 }