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

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

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

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

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