Skip to content
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

[Bug] Bal Persist fails when tries to retrieve record with a nonexistent associations #7304

Closed
daneshk opened this issue Oct 28, 2024 · 0 comments · Fixed by ballerina-platform/module-ballerinax-persist.sql#82
Assignees
Labels
module/persist Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Type/Bug
Milestone

Comments

@daneshk
Copy link
Member

daneshk commented Oct 28, 2024

Description

When fetching the record with a nonexistent associated entity, bal persist failed with an error.

Related Internal issue: https://github.com/wso2-enterprise/internal-support-ballerina/issues/812

Steps to Reproduce

  • Add one-to-one relationship with two entities(A -> B and B is the relationship owner(B has the foreign key))
  • Add a record to the A entity but not the B entity.
  • When retrieving, Define the record to retrieve A entity with the associated B entity. It gives an error when trying to map the () value to the associated entity fields

Version

All newest versions

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/persist Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Type/Bug
Projects
Status: Done
1 participant