$phql = "
select L.id_localite, L.code_postal, L.nom_localite, D.nom_district
from Localites as L
inner join Districts D
on L.district_id = D.id_district
where L.code_postal like ':cp:%'
order by L.code_postal
limit :max:
";
$results = $this->modelsManager->executeQuery($phql, array(
'cp' => $code_postal,
'max' => $max, ));
How can i bind types to be interpreted as integer with phql ? It's not well explained in the doc.