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