ranjan-purbey / typeorm-composite-primary-key-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typeorm Composite Primary Key Test

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.

Instructions

  1. Clone the project and run yarn
  2. Run npx ts-node src/index.ts

As can be seen in console output, postCategoryId is undefined

About


Languages

Language:TypeScript 100.0%