/** * 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()); }
/** * 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(); $method = 'get' . $column->getPhpNative() . 'Sql'; return $this->{$method}($colValue->getValue()); }