cphalcon
cphalcon copied to clipboard
New Escaping System - Parse error near EOF
Working with a model, using findFirst, since before 0.7.0 had the escaping system implementet (ISSUE 104), I used to do this when using findFirst:
SomeModel::findFirst('userid=89');
This now yields a:
Uncaught exception: exception 'Phalcon\Mvc\Model\Exception' with message 'Parsing error near to EOF'
If I remove the backticks, all is good, its easy enough when you know it, but the error message is kinda useless. Atleast I didn't understand it for a while.
Hopefully a better error syntax can be devised?
I added a improvement in 0.8.0 to the error message sub-system, thanks