I want to do the case insensitive check for the query. previously I am using MongoRegex as describe in the this ticket
But as per the Php.net this is now deprecated, so can't use it, they suggest to use MongoDB\BSON\Regex but I am not sure how use this in symfony2. but it throws class not found exception if I try to use it.
Please let me know the possible solution. Or any other way to do the case insensitive check in the ODM custom query (may be in field function)
Thank you so much.
/pattern/i
? Or/(?i)pattern/
? – Scarborough