PHP (Symfony 2.0):
$term = "3";
$query = $em->createQuery(
"SELECT * FROM SoftsystemSupportBundle:Shop WHERE sid REGEXP '^$term'"
);
$shops = $query->getResult();
Throws an exception:
Error: Expected IdentificationVariable | StateFieldPathExpression | AggregateExpression | \"(\" Subselect \")\" | ScalarExpression, got '*'"
I want to get all entities where sid field matches regex.
Any ideas whats wrong?