I have some code that creates a query once with:
$Query = $this->di('modelsManager')->createQuery($phql);//ignore $this->di(), that's custom, unrelated code
I then loop through an array, substituting in a bound parameter each loop, and re-executing the query like this:
$Result = $Query->execute(['location'=>$location_id]);
where $location_id
is different on every execution.
This code has worked for years - or rather, there have been no reports of any ill consequences from it not working.
I updated to v3.4.4 at the end of August, and it seems now that only the first binding sticks. Subsequent loops result in the same query being run as the first loop. So 10 iterations will result in the first query being run 10 times. I can confirm this by looking at the query log for my MariaDB server.
Has anyone else encountered this issue?