chore(utils): DML#hasOne allow mappedBy to not be defined (#10442)

RESOLVES FRMW-2826

**What**
We have many places where we define only one to one on one side of the relation. In that case it is a one to one that does not mapped by to the other side relation since it is not defined. This pr allow to create a one to one without mapped by. In order to remove breaking changes, in that case we ask the user to explicitly define the `mappedBy` as `undefined`
This commit is contained in:
Adrien de Peretti
2024-12-05 09:31:38 +00:00
committed by GitHub
parent 223bcff379
commit 90d7f4ff39
4 changed files with 114 additions and 12 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
chore(utils): DML#hasOne allow mappedBy to not be defined