Пример #1
0
 public function format(IFormatterProvider $formatterProvider)
 {
     $whereFormat = $this->where->format($formatterProvider);
     $where2Format = $this->where2->format($formatterProvider);
     return $this->sql('(' . $whereFormat . ') ' . $this->relation . ' (' . $where2Format . ')', array_merge($whereFormat->getParameterList(), $where2Format->getParameterList()));
 }
Пример #2
0
 public function format(IFormatterProvider $formatterProvider)
 {
     return $this->sql($this->join . ' JOIN ' . $this->table->format($formatterProvider) . ' ON ' . $this->on->format($formatterProvider));
 }