Composite Primary Keys Using EntitySchema #5344
-
How do you create a composite primary key using EntitySchema? With decorated classes, you can place I've also tried putting After searching for 'composite primary key' here on GitHub and also on the web in general (with mikro orm), I started to get worried that all the examples I saw were of traditional decorator style entities. Please let me know if this is possible and what I can do to get it working. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That's exactly how. Provide a repro if it doesn't work for you.
That is only for type level - it's a type, there is no value here. But keep that, it's valid for |
Beta Was this translation helpful? Give feedback.
PKs cannot be embedded.