typeorm update Каскадное обновление вложенных сущностей
Primary tabs
Для каскадного обновления используйте в EntityManager метод save() а не update(), т.к. на момент написания данной заметки update не поддерживает каскадные "фишки":
Updates entity partially. Entity can be found by a given condition(s).
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
* Executes fast and efficient UPDATE query.
- Log in to post comments
- 1086 reads