/** * Performs DB-specific ignore case, but only if the column type necessitates it. * * @param string $str The expression we want to apply the ignore case formatting to (e.g. the column name). * @param \Propel\Runtime\Adapter\AbstractAdapter $db */ public function ignoreCase($str, AbstractAdapter $db) { if ($this->isText()) { return $db->ignoreCase($str); } else { return $str; } }