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

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

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

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

@param     string $legalform 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 CustomerQuery The current query, for fluid interface
Filter the query on the legalform column