打印Drupal7实体的SQL语句



如何打印的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

您可以使用(string) $query(如果可能的话,我更喜欢这种方法(或添加->addTag('debug')

最新更新