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?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
This can be done using
echo (string)$query; var_dump($query->arguments());
This simple code will give you both query and arguments, for simple debugging.