src/model/Base/ReferenceQuery.php
public function filterBySchool($school = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($school)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $school)) {
                $school = str_replace('*', '%', $school);
                $comparison = Criteria::LIKE;
            }
        }

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

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

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

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