-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entity save fails after lazy loading relations #3689
Comments
Lazy-Loading with Promises was abandonded in the end of 2018. There sadly will be no further support and i also do have mny problems with Lazy-Loading, which seem to be never solved. |
Wait.. do you say, that |
It's not that simple, i now know... |
hm, good to know.. i come from the "Laravel universe" and relationships are 99% lazy-loaded - except if you explicitly load them eager.. So this was the "go to strategy" in Laravel - and therefore i am quite familiar with it.. I know, lazy loading has several downsides, for example, it may result in a lot of extra queries (e.g., for complex, deeply nested structures) which may be easier to get / load if you query it eagerly (e.g., everything is get within one single but more complex query) Thanks for linking to the other issue! |
This is an unstable and error-prone way to achive lazy-loading. Source: typeorm/typeorm#3689
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[x]
0.2.12
and0.2.13
(or put your version here)Steps to reproduce or a small repository showing the problem:
it works with 0.2.11
The text was updated successfully, but these errors were encountered: