【发布时间】:2023-03-06 15:32:01
【问题描述】:
如何打印sql语句
$entities = $query
->entityCondition('entity_type', 'node')
->propertyCondition('type', "page")
->propertyCondition('uid', $user->uid)
->fieldCondition('field_item_r1', 'value', $title)
->addTag('debug')->execute();```
Please help me to print the sql statement
【问题讨论】:
-
必须启用
devel模块才能使“调试”标签起作用。你也可以试试(string) $query@see drupal.org/project/drupal/issues/2902311。