Corrected documentation on eager relation option

https://github.com/typeorm/typeorm/issues/1478
This commit is contained in:
Travis Hill 2018-01-23 12:16:24 -05:00 committed by GitHub
parent 82b1410f0e
commit d6d78a0a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ There are several types of relations:
There are several options you can specify for relations:
* `eager: boolean` - If set to true, the relation will always be loaded with the main entity when using `find*` methods or `QueryBuilder` on this entity
* `eager: boolean` - If set to true, the relation will always be loaded with the main entity when using `find*` methods. If you use `QueryBuilder`, eager relations are disabled and you have to use `leftJoinAndSelect` to load the relation.
* `cascadeInsert: boolean` - If set to true, the related object will be inserted into database if it does not exist yet.
* `cascadeUpdate: boolean` - If set to true, the related object will be updated in the database on entity save.
* `cascadeRemove: boolean` - If set to true, the related object will be removed from the database on entity save and without related object.