Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
...with a message:
PHP Fatal error: Call to undefined method EntityFieldQuery::preExecute() in /path_to_site/sites/all/modules/contrib/devel/devel.module on line 1567
Comments
Comment #1
salvisdpq() does this:
More specifically, preExecute() is a member of the SelectQueryInterface interface. I've fixed the documentation.
EntityFieldQueries are not DBTNG query objects.
Comment #2
andyceo CreditAttribution: andyceo commentedI think, it would be very nice to dump EntityFieldQuery (and may be other queries) to their SQL representation with one function - dpq().
Have you any idea how to make it real? Or maybe you have other ideas?
Comment #3
fuerst CreditAttribution: fuerst commentedDebugging SQL generated by EntityFieldQuery currently seems to be a pain in the ass. I did not find a way yet to view the SQL code from within Drupal/PHP. I ended up using the MySQL query log (http://dev.mysql.com/doc/refman/5.1/en/query-log.html) to get a glue about what SQL get finally created.
Comment #4
jonhattanDuplicate of #1858318: Make debugging EFQ easier by implementing hook_query_alter().