/** * Gets the SQL value for StoreType ENUM value * * @param string $enumVal ENUM value to get SQL value for * @return int SQL value */ public static function getStoreTypeSqlValue($enumVal) { return StorePeer::getSqlValueForEnum(StorePeer::STORE_TYPE, $enumVal); }
/** * Filter the query on the store_type column * * @param mixed $storeType The value to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return StoreQuery The current query, for fluid interface * @throws PropelException - if the value is not accepted by the enum. */ public function filterByStoreType($storeType = null, $comparison = null) { if (is_scalar($storeType)) { $storeType = StorePeer::getSqlValueForEnum(StorePeer::STORE_TYPE, $storeType); } elseif (is_array($storeType)) { $convertedValues = array(); foreach ($storeType as $value) { $convertedValues[] = StorePeer::getSqlValueForEnum(StorePeer::STORE_TYPE, $value); } $storeType = $convertedValues; if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(StorePeer::STORE_TYPE, $storeType, $comparison); }