{"action":"created","issue":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/2603","repository_url":"https://api.github.com/repos/typeorm/typeorm","labels_url":"https://api.github.com/repos/typeorm/typeorm/issues/2603/labels{/name}","comments_url":"https://api.github.com/repos/typeorm/typeorm/issues/2603/comments","events_url":"https://api.github.com/repos/typeorm/typeorm/issues/2603/events","html_url":"https://github.com/typeorm/typeorm/issues/2603","id":345583049,"node_id":"MDU6SXNzdWUzNDU1ODMwNDk=","number":2603,"title":"Cannot read property 'joinColumns' of undefined","user":{"login":"locuraskyline","id":41881048,"node_id":"MDQ6VXNlcjQxODgxMDQ4","avatar_url":"https://avatars2.githubusercontent.com/u/41881048?v=4","gravatar_id":"","url":"https://api.github.com/users/locuraskyline","html_url":"https://github.com/locuraskyline","followers_url":"https://api.github.com/users/locuraskyline/followers","following_url":"https://api.github.com/users/locuraskyline/following{/other_user}","gists_url":"https://api.github.com/users/locuraskyline/gists{/gist_id}","starred_url":"https://api.github.com/users/locuraskyline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locuraskyline/subscriptions","organizations_url":"https://api.github.com/users/locuraskyline/orgs","repos_url":"https://api.github.com/users/locuraskyline/repos","events_url":"https://api.github.com/users/locuraskyline/events{/privacy}","received_events_url":"https://api.github.com/users/locuraskyline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-30T01:35:11Z","updated_at":"2018-08-05T20:13:50Z","closed_at":null,"author_association":"NONE","body":"**Issue type:**\r\n\r\n[x] question\r\n[ ] 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[ ] `mysql` / `mariadb`\r\n[ ] `oracle`\r\n[ ] `postgres`\r\n[x] `sqlite`\r\n[ ] `sqljs`\r\n[ ] `react-native`\r\n[ ] `expo`\r\n\r\n**TypeORM version:**\r\n\r\n[ ] `latest`\r\n[ ] `@next`\r\n[x] `0.2.7`\r\n\r\n**Steps to reproduce or a small repository showing the problem:**\r\n```javascript\r\n@Entity()\r\nexport class Cuota {\r\n    @PrimaryGeneratedColumn()\r\n    id:number;\r\n\r\n    @ManyToOne(type => CuotaEstado, estado => estado.id)\r\n    @JoinColumn()\r\n    estado:CuotaEstado;\r\n\r\n    @Column({ nullable: true })\r\n    fecha_pago:Date;\r\n\r\n    @OneToMany(type => ItemCuota, item => item.Cuota)\r\n    items:ItemCuota[];\r\n}\r\n\r\n@Entity()\r\nexport class ItemCuota {\r\n    @PrimaryGeneratedColumn()\r\n    id:number;\r\n    \r\n    @Column()\r\n    monto:number;\r\n    \r\n    @ManyToOne(type => Concepto, concepto => concepto.id)\r\n    concepto:Concepto;\r\n\r\n    @ManyToOne(type => Cuota, cuota => cuota.items)\r\n    Cuota: number;\r\n}\r\n\r\nexports.get = async function(req:Request,res:Response){\r\n    const userRepository = getManager().getRepository(Cuota);\r\n    const cuota = await userRepository.findOne(1, { relations:[\"estado\", \"items\"] });\r\n    console.log(cuota);\r\n\r\n    res.status(200).send(cuota);\r\n}\r\n```\r\n\r\n**Output**\r\nTypeError: Cannot read property 'joinColumns' of undefined\r\n    at C:\\....\\src\\query-builder\\SelectQueryBuilder.ts:1446:61\r\n    at Array.map (<anonymous>)\r\n    at SelectQueryBuilder.createJoinExpression (C:\\....\\src\\query-builder\\SelectQueryBuilder.ts:1416:57)\r\n    at SelectQueryBuilder.getQuery (C:\\....\\src\\query-builder\\SelectQueryBuilder.ts:51:21)\r\n    at SelectQueryBuilder.QueryBuilder.getQueryAndParameters (C:\\....\\src\\query-builder\\QueryBuilder.ts:386:28)\r\n    at SelectQueryBuilder.<anonymous> (C:\\....\\src\\query-builder\\SelectQueryBuilder.ts:1885:40)\r\n    at step (C:\\....\\node_modules\\typeorm\\query-builder\\SelectQueryBuilder.js:42:23)\r\n    at Object.next (C:\\....\\node_modules\\typeorm\\query-builder\\SelectQueryBuilder.js:23:53)\r\n    at C:\\....\\node_modules\\typeorm\\query-builder\\SelectQueryBuilder.js:17:71\r\n    at new Promise (<anonymous>)"},"comment":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/comments/410544841","html_url":"https://github.com/typeorm/typeorm/issues/2603#issuecomment-410544841","issue_url":"https://api.github.com/repos/typeorm/typeorm/issues/2603","id":410544841,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDU0NDg0MQ==","user":{"login":"marmiha","id":36703826,"node_id":"MDQ6VXNlcjM2NzAzODI2","avatar_url":"https://avatars1.githubusercontent.com/u/36703826?v=4","gravatar_id":"","url":"https://api.github.com/users/marmiha","html_url":"https://github.com/marmiha","followers_url":"https://api.github.com/users/marmiha/followers","following_url":"https://api.github.com/users/marmiha/following{/other_user}","gists_url":"https://api.github.com/users/marmiha/gists{/gist_id}","starred_url":"https://api.github.com/users/marmiha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmiha/subscriptions","organizations_url":"https://api.github.com/users/marmiha/orgs","repos_url":"https://api.github.com/users/marmiha/repos","events_url":"https://api.github.com/users/marmiha/events{/privacy}","received_events_url":"https://api.github.com/users/marmiha/received_events","type":"User","site_admin":false},"created_at":"2018-08-05T20:13:50Z","updated_at":"2018-08-05T20:13:50Z","author_association":"NONE","body":"same problem here\r\n"}}
{"actor":{"display_login":"marmiha"}}