I have a problem here, my code is:
$query = $con2->createQueryBuilder()->select('*')
->from('`blog_entry`', 'p')
->where('WHERE url->"$.?" = ?')
->setParameter(0, $request->getLocale())
->setParameter(1, $entryUrl);
The url field is a JSON field, and it contains like this: {"es": "url.html"}
But it appears the next error:
SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
I think that the part of url->"$.?" is the error, but I don't know how to pass the parameter there, any ideas?