РЕШЕНО! PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.uid' in 'on clause': SELECT tax

Главные вкладки

Аватар пользователя iNFerNo iNFerNo 12 апреля 2013 в 14:58

<code lang="php">PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.uid' in 'on clause': SELECT taxonomy_term_data.tid AS entity_id, :entity_type AS entity_type, NULL AS revision_id FROM {taxonomy_term_data} taxonomy_term_data INNER JOIN {taxonomy_vocabulary} n ON n.vid = taxonomy_term_data.vid INNER JOIN {users_roles} users_roles ON users_roles.uid = users.uid INNER JOIN {role} role ON role.rid = users_roles.rid WHERE (taxonomy_term_data.vid IN (:db_condition_placeholder_0)) AND (taxonomy_term_data.tid IN (:db_condition_placeholder_1)) AND (role.name = :db_condition_placeholder_2) ORDER BY taxonomy_term_data.name ASC; Array ( [:db_condition_placeholder_0] => 8 [:db_condition_placeholder_1] => 101 [:db_condition_placeholder_2] => entity_reference_role_filter_none [:entity_type] => taxonomy_term ) в функции EntityFieldQuery->execute() (строка 1145 в файле /home/u3311/domains/---------------.ru/includes/entity.inc).

Добавил поле entity reference на словарь (что бы термины выбирать). Пытаюсь добавить термин (автокомплт) - такая ошибка.

Комментарии