Hi All,
I am working on a module that builds on the default Silverstripe FullTextSearch functionality, but allows you to search any data object.
Problem I am having is that if I have a DataObject, for example:
class BaseProduct extends DataObject {
static $db = array(
"Title" => "Varchar",
"Content" => "HTMLText"
);
}
If I use BaseProduct::get()->filter("Title:FullText", "Some string"); then the filter works without error.
If I extend BaseProduct, for example:
class Product extends BaseProduct {
static $db = array(
"SKU" => "Varchar"
);
}
I then use
Product::get()
->filter(array(
"Title:FullText" => "Some string",
"SKU:FullText" => "Some string"
));
Then I get an error, it looks like Product isn't joining properly to the BaseProduct (parent) object. Anyone had this issue? Any ideas what might be going on?
Cheers in advance.
Mo