Add View entity relations support.
See original GitHub issueIssue type:
[ ] question [ ] bug report [x] feature request [ ] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[x] mysql
/ mariadb
[ ] oracle
[ ] postgres
[ ] cockroachdb
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo
TypeORM version:
[ ] latest
[ ] @next
[x] 0.2.18
I would like to add view entity relation support. It would be very useful to be able to join a view relation just like an entity. In the end, views works the same way as normal tables at a database level, and I think it should be the same at entity or view entity level.
The problem is that the only way to make this work actually is disabling synchronize so typeorm don’t tries to add foreign keys for view entity relations. The thing is that if you disable synchronize it works perfectly, so I just need synchronization to ignore certain relations.
What I’m asking for is to add support to disable specific relation foreign key creation just as #3124 or #3120 does. Or even add entire view entity relation support, in a way relations modeled at view entites are kind of “virtual”, just metadata, so you can use it in query builder and other libraries that are built for typeorm.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:23
- Comments:5 (2 by maintainers)
Top GitHub Comments
It would be very helpful for us as well 👍
Is there a reason driver: postgres is not added to this?