Permalink
Browse files

Used by PR symfony/symfony#6150

  • Loading branch information...
Felix Labrecque
Felix Labrecque committed Dec 4, 2012
1 parent 918cd5f commit db4da4921efce26caacd6937199c3c66a8d546ba
Showing with 10 additions and 0 deletions.
  1. +10 −0 runtime/lib/map/ColumnMap.php
@@ -211,6 +211,16 @@ public function isNumeric()
return ($this->type == PropelColumnTypes::NUMERIC || $this->type == PropelColumnTypes::DECIMAL || $this->type == PropelColumnTypes::TINYINT || $this->type == PropelColumnTypes::SMALLINT || $this->type == PropelColumnTypes::INTEGER || $this->type == PropelColumnTypes::BIGINT || $this->type == PropelColumnTypes::REAL || $this->type == PropelColumnTypes::FLOAT || $this->type == PropelColumnTypes::DOUBLE);
}
+ /**
+ * Whether this column is an integer
+ *
+ * @return boolean
+ */
+ public function isInteger()
+ {
+ return $this->getPdoType() === \PDO::PARAM_INT;
+ }
+
/**
* Whether this column is a text column (varchar, char, longvarchar).
* @return boolean

0 comments on commit db4da49

Please sign in to comment.