Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: $DataObject::get() Question

$
0
0

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


Viewing all articles
Browse latest Browse all 4235

Trending Articles