Answer the question
In order to leave comments, you need to log in
Difference Types::text vs Types::string per request?
In the request, you can additionally validate the parameters, which is recommended by Marco himself and the dock of doctrine.
$query->andWhere($expr->eq($tableFields['alpha2'], sprintf(':%s', 'alpha2')))
->setParameter('alpha2', $filter->alpha2, Types::STRING)
;
PARAM_STR
return \PDO::PARAM_STR;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question