Exemplo n.º 1
0
 /**
  * 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());
 }
Exemplo n.º 2
0
 /**
  * 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);
 }