Commit b2c27558 authored by zYne's avatar zYne

--no commit message

--no commit message
parent d862b013
......@@ -50,7 +50,7 @@ class Doctrine_Hook_WordLike extends Doctrine_Hook_Parser_Complex
$value = Doctrine_Tokenizer::bracketTrim($value, "'", "'");
$a[] = $alias . '.' . $field . ' LIKE ?';
$this->params[] = $value . '%';
$this->params[] = '%' . $value . '%';
} else {
$e2 = explode(' ',$value);
......@@ -58,9 +58,9 @@ class Doctrine_Hook_WordLike extends Doctrine_Hook_Parser_Complex
foreach ($e2 as $v) {
$v = trim($v);
$a[] = $alias . '.' . $field . ' LIKE ?';
$this->params[] = $v . '%';
$this->params[] = '%' . $v . '%';
}
}
return implode(' OR ', $a);
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment