A sample project to demonstrate the issue with latest typeorm version (0.2.43
) where entityManager.getId
returns undefined
for custom join tables with lazy relations.
- Clone the project and run
yarn
- Run
npx ts-node src/index.ts
As can be seen in console output, postCategoryId
is undefined