Я использую Zend_Db_Select для выполнения запроса с соединением. Я получаю следующий SQL-запрос:
SELECT `Utilisateur`.*, `Ressource`.*, `Acl_Cache`.*, `Role`.*, `UtilisateurRole`.* FROM `Utilisateur`
INNER JOIN `Ressource` ON Ressource.idJointure = Utilisateur.id
INNER JOIN `Acl_Cache` ON Acl_Cache.idRessource = Ressource.id
INNER JOIN `Role` ON Role.id = Acl_Cache.idRole
INNER JOIN `UtilisateurRole` ON UtilisateurRole.idRole = Role.id
WHERE (Ressource.tableJointure = 'Utilisateur') AND (UtilisateurRole.idUtilisateur = '2')
Почему Zend_Db добавляет эту часть в предложение SELECT:
, `Ressource`.*, `Acl_Cache`.*, `Role`.*, `UtilisateurRole`.*
Я никогда об этом не спрашивал и не хочу этого. Как предотвратить такое поведение?