Hi all!!
I am trying to make this query in silverstripe but it doesn't want to work:
$entries = BookstoreBook::get()
->sort($order)
->where('"BookstoreBook"."Title" LIKE $searchString');
return $entries ? $entries : false;
How can I use "LIKE" in the where function?????
Thank you Please help!
Posted to: $DataObject::get() Question | Show Thread | Post Reply