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

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

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

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

@param     string $serial 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 serial column