/** * Gets the propertly escaped (and quoted) value for a column. * @param ColumnValue $colValue * @return mixed The proper value to be added to the string. */ protected function getColumnValueSql(ColumnValue $colValue) { $column = $colValue->getColumn(); $creoleTypeString = PropelTypes::getCreoleType($column->getPropelType()); $creoleTypeCode = CreoleTypes::getCreoleCode($creoleTypeString); $method = 'get' . CreoleTypes::getAffix($creoleTypeCode) . 'Sql'; return $this->{$method}($colValue->getValue()); }
/** * Returns the column Creole type as a string. * @return string The constant representing Creole type: e.g. "VARCHAR". */ public function getType() { return PropelTypes::getCreoleType($this->propelType); }