How to extract query placeholders for debug purposes? When I cast query to string, I can see WHERE that will be passed to the database, like this:

WHERE  (idProperty = :db_condition_placeholder_0)
  AND  (idCategory = :db_condition_placeholder_1)


But how can I extract these placeholders?
This can be done using arguments:

echo (string)$query;
var_dump($query-&gt;arguments());


This simple code will give you both query and arguments, for simple debugging.