We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f734f10 commit 5761219Copy full SHA for 5761219
src/Doctrine/Odm/State/Options.php
@@ -52,6 +52,8 @@ public function getTransformDocument(): mixed
52
53
public function withTransformDocument(mixed $transformDocument): self
54
{
55
- return $this->withTransformModel($transformDocument);
+ $self = clone $this;
56
+ $self->transformModel = $transformDocument;
57
+ return $self;
58
}
59
src/Doctrine/Orm/State/Options.php
public function withTransformDocument(mixed $transformEntity): self
- return $this->withTransformModel($transformEntity);
+ $self->transformModel = $transformEntity;
0 commit comments