0

我已经制定了一个查询,但是当我查看这些值时,它正在处理受保护的字段 - 我做错了什么?这显然是在 Drupal 中。

$query
->fields('registration', array('registration_id'))
->range(0, $i)
->orderBy('registration_id', 'desc')
->execute()
->fetchAssoc();

样本:

SelectQuery Object
(
    [fields:protected] => Array
        (
            [registration_id] => Array
                (
                    [field] => registration_id
                    [table] => registration
                    [alias] => registration_id
                )

        )

    [expressions:protected] => Array
        (
        )

    [tables:protected] => Array
        (
            [registration] => Array
                (

ETC...

4

0 回答 0