Open spamshaker opened 1 year ago
Hi @spamshaker, i've been struggling with that for a couple hours as well, but it appears that it is not possible to use TreeRepository with adjacency-list. More on that can be found here: https://github.com/typeorm/typeorm/issues/2540
Issue description
Tree repos not working, please see steps to reproduce
Expected Behavior
no exception
Actual Behavior
throws exception:
Cannot read properties of undefined (reading 'joinColumns') TypeError: Cannot read properties of undefined (reading 'joinColumns')
Steps to reproduce
https://orkhan.gitbook.io/typeorm/docs/tree-entities#adjacency-list
create entity from above example :
usage:
My Environment
Additional Context
No response
Relevant Database Driver(s)
Are you willing to resolve this issue by submitting a Pull Request?
Not sure