function toDialectString(IDialect $dialect) { $compiledSlices = array(); $compiledSlices[] = $this->getJoinMethod()->toDialectString($dialect); $compiledSlices[] = $this->getSource()->toDialectString($dialect); $compiledSlices[] = 'USING'; $compiledSlices[] = '('; $compiledSlices[] = $this->identicalColumns->toDialectString($dialect); $compiledSlices[] = ')'; $compiledString = join(' ', $compiledSlices); return $compiledString; }
/** * @return string */ private function getCompiledFields(IDialect $dialect) { $list = new SqlFieldArray($this->getRow()->getKeys()); return $list->toDialectString($dialect); }
/** * Gets the list of covered fields as string * @param IDialect $dialect * @return string */ protected function getFieldsAsString(IDialect $dialect) { $fields = new SqlFieldArray($this->fields); return $fields->toDialectString($dialect); }
function toDialectString(IDialect $dialect) { return $this->getHead($dialect) . ' FOREIGN KEY (' . $this->fields->toDialectString($dialect) . ')' . ' REFERENCES ' . $dialect->quoteIdentifier($this->referencedTable->getName()) . '(' . $this->pkFields->toDialectString($dialect) . ')' . ' ON DELETE ' . $this->associationBreakAction->toDialectString($dialect) . ' ON UPDATE ' . AssociationBreakAction::cascade()->toDialectString($dialect); }
function toDialectString(IDialect $dialect) { return $this->getHead($dialect) . ' (' . $this->fields->toDialectString($dialect) . ')'; }