Skip to content

Commit

Permalink
fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Foldes committed Sep 8, 2023
1 parent 64cd538 commit 8a02181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patch/nullable_embeddables.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/a/lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php b/b/lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php
index 563a699..377b6b3 100644
index 563a699..3e2020d 100644
--- a/a/lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php
+++ b/b/lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php
@@ -49,13 +49,16 @@ class ReflectionEmbeddedProperty extends ReflectionProperty
Expand Down Expand Up @@ -32,7 +32,7 @@ index 563a699..377b6b3 100644
+ $this->parentProperty->getType()->allowsNull() &&
+ ! $this->childProperty->getType()->allowsNull()
+ ) {
+ $this->parentProperty->setValue($object);
+ $this->parentProperty->setValue($object, null);
+
+ return;
+ }
Expand Down

0 comments on commit 8a02181

Please sign in to comment.