I am using LIKE query in DOCTRINE1 to search keywords in DB. Here is the example : I have a string available in DB "Developer in the hell"
$str = "Developer in the hell";
$srchKey = "%" . mysql_real_escape_string($searchString) . "%";
$q = Doctrine_Query::create()->from("Movie as m")
->where('m.name LIKE '."'$srchKey'". ' or m.keywords LIKE'."'$srchKey'")
->fetchArray();
The concern is if I search for "Developer" it returns me the result but if I search for "Developer hell" is returns me nothing. Because middle to words from the string are skipped.
Is there any wild card/advance options/conditions that DOCTRINE provide to handle such case.