Are there any methods / method configurations which would allow an Orm\Model to perform a fulltext 'MATCH .. AGAINST', or is the 'DB' class the best option?
Thanks. Actually I misunderstood the use of Database_Expression objects. I was trying to use it directly in the where clause of the find() method in ORM Model.
I tried to call directly the where() method on a Query object. It's work a lot better, except that the compiled SQL query contains a syntax error and looks like :
... MATCH (`column`) AGAINST ('search') null;
The "null" at the end make the query fail.
I tried to pass an empty string as the value parameter like the following :
$query->where( \DB::expr('MATCH (`column`) AGAINST ('search'), '' );
but it produce the following SQL :
... MATCH (`column`) AGAINST ('search') = '';
wich is syntaxically correct but fail to get the desired elements.
So at last I directly edited the query class (I will next overload it in my own class) to add line 130 :
I think a partial upgrade is a bad idea, but if you insist, update the entire fuel/classes/database folder, changes are often done in multiple files. You don't want to run into other issues.