src/Slashworks/AppBundle/Model/om/BaseLicenseQuery.php
public function filterByValidUntil($validUntil = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($validUntil)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $validUntil)) {
                $validUntil = str_replace('*', '%', $validUntil);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(LicensePeer::VALID_UNTIL, $validUntil, $comparison);
    }
public function filterByValidUntil($validUntil = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($validUntil)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $validUntil)) {
                $validUntil = str_replace('*', '%', $validUntil);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(LicensePeer::VALID_UNTIL, $validUntil, $comparison);
    }
public function filterByValidUntil ( $ validUntil = null , $ comparison = null ) { if ( null === $ comparison ) { if ( is_array ( $ validUntil ) ) { $ comparison = Criteria :: IN ; } elseif ( preg_match ( '/[\%\*]/' , $ validUntil ) ) { $ validUntil = str_replace ( '*' , '%' , $ validUntil ) ; $ comparison = Criteria :: LIKE ; } } return $ this -> addUsingAlias ( LicensePeer :: VALID_UNTIL , $ validUntil , $ comparison ) ; }
Filter the query on the valid_until column

Example usage:
<code>
$query->filterByValidUntil('fooValue');   // WHERE valid_until = 'fooValue'
$query->filterByValidUntil('%fooValue%'); // WHERE valid_until LIKE '%fooValue%'
</code>

@param     string $validUntil The value to use as filter.
Accepts wildcards (* and % trigger a LIKE)
@param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return LicenseQuery The current query, for fluid interface
Filter the query on the valid_until column