Hi Brad, You're right - after some research I figured it out, on my code it was missing the \ before MongoRegex on the line below:Brad Proctor wrote on Wednesday 28th of March 2012:MongoRegex is a part of the PHP Mongo extension, not part of FuelPHP, and it's only use is on this line:
$this->wheres[$field] = new \MongoRegex($regex);
which is looking for it in the global namespace. Are you possibly using an older version of FuelPHP?
$this->wheres[$field] = new MongoRegex($regex);
$this->wheres[$field] = new \MongoRegex($regex);
It looks like you're new here. If you want to get involved, click one of these buttons!