{"action":"closed","issue":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/3128","repository_url":"https://api.github.com/repos/typeorm/typeorm","labels_url":"https://api.github.com/repos/typeorm/typeorm/issues/3128/labels{/name}","comments_url":"https://api.github.com/repos/typeorm/typeorm/issues/3128/comments","events_url":"https://api.github.com/repos/typeorm/typeorm/issues/3128/events","html_url":"https://github.com/typeorm/typeorm/issues/3128","id":382282663,"node_id":"MDU6SXNzdWUzODIyODI2NjM=","number":3128,"title":"orderBy error Mysql in typeorm (works in request sql)","user":{"login":"Paul75","id":457062,"node_id":"MDQ6VXNlcjQ1NzA2Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/457062?v=4","gravatar_id":"","url":"https://api.github.com/users/Paul75","html_url":"https://github.com/Paul75","followers_url":"https://api.github.com/users/Paul75/followers","following_url":"https://api.github.com/users/Paul75/following{/other_user}","gists_url":"https://api.github.com/users/Paul75/gists{/gist_id}","starred_url":"https://api.github.com/users/Paul75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paul75/subscriptions","organizations_url":"https://api.github.com/users/Paul75/orgs","repos_url":"https://api.github.com/users/Paul75/repos","events_url":"https://api.github.com/users/Paul75/events{/privacy}","received_events_url":"https://api.github.com/users/Paul75/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-19T16:03:34Z","updated_at":"2018-11-23T21:33:36Z","closed_at":"2018-11-23T21:33:36Z","author_association":"NONE","body":"**Issue type:**\r\n\r\n[ ] question\r\n[x] bug report\r\n[ ] feature request\r\n[ ] documentation issue\r\n\r\n**Database system/driver:**\r\n\r\n[ ] `cordova`\r\n[ ] `mongodb`\r\n[ ] `mssql`\r\n[x] `mysql` / `mariadb`\r\n[ ] `oracle`\r\n[ ] `postgres`\r\n[ ] `sqlite`\r\n[ ] `sqljs`\r\n[ ] `react-native`\r\n[ ] `expo`\r\n\r\n**TypeORM version:**\r\n\r\n[x] `latest`\r\n[ ] `@next`\r\n[ ] `0.x.x` (or put your version here)\r\n\r\n**Steps to reproduce or a small repository showing the problem:**\r\n\r\nI make a query into repositiory to add in order the element but it strenge when I display the sql (querySql()) and go to phpMyAdmin it give a result but into execute into TypeOrm it failed ....\r\n\r\nMy SQL query generated is : \r\n```\r\nSELECT `etablissements`.`id` AS `etablissements_id`, `etablissements`.`regate` AS `etablissements_regate`, `etablissements`.`libelle` AS `etablissements_libelle`, `etablissements`.`territoireId` AS `etablissements_territoireId`, `etablissements`.`typeEtablissementId` AS `etablissements_typeEtablissementId`, `etablissements`.`dtId` AS `etablissements_dtId`, `type_etablissement`.`id` AS `type_etablissement_id`, `type_etablissement`.`libelle` AS `type_etablissement_libelle`, `territoire`.`id` AS `territoire_id`, `territoire`.`libelle` AS `territoire_libelle` FROM `etablissements` `etablissements` LEFT JOIN `type_etablissement` `type_etablissement` ON `type_etablissement`.`id`=`etablissements`.`typeEtablissementId`  LEFT JOIN `territoires` `territoire` ON `territoire`.`id`=`etablissements`.`territoireId` ORDER BY `etablissements`.`libelle` DESC\r\n```\r\n\r\nBut in Error is : \r\n``` Error 0=Error: \"`etablissements`\" alias was not found. Maybe you forgot to join it? ```\r\nstrenge is into the same table not join ....\r\n\r\nThanks\r\n"}}
{"actor":{"display_login":"Paul75"}}