/** * @return Table */ public function getTable() { return $this->query->getTable(); }
/** * @param QueryInterface $query * @param bool $resetPlaceholders * * @return string * * @throws \RuntimeException */ public function write(QueryInterface $query, $resetPlaceholders = true) { if ($resetPlaceholders) { $this->placeholderWriter->reset(); } $queryPart = $query->partName(); if (false === empty($this->queryWriterArray[$queryPart])) { $this->createQueryObject($queryPart); return $this->queryWriterInstances[$queryPart]->write($query); } throw new \RuntimeException('Query builder part not defined.'); }