Я использую Zend_Db_Select для выполнения запроса с помощью Join.Я получаю следующий 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`.*
Я никогда не спрашивал об этом, и я этого не хочу, Как предотвратить это поведение?