mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 07:33:28 +01:00
Add or update child Table in 1 to 1 relationship #399
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dwirandytlvk on GitHub (Dec 22, 2022).
Hallo @JohnEstropia
I'am trying this library that seems great, i want to ask about how add / update unique object
for example i have 2 object
FlightBookingInfohas oneFlightBookingDetail, i want to update FlightBookingInfo and also FlightBookingDetail from my json that i got from the API, i can add or updateFlightBookingInfobutFlightBookingDetailvalue is inserted instead of update existing value that has relationship toFlightBookingInfoMay i know how to update FlightBookingDetail from json, without fetching it first from database?
FlightBookingInfo
FlightBookingDetail
Here is how i add/update the data