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

Fix for fatal exception if persisted collection was unserialized #1411

Merged
merged 2 commits into from
May 24, 2016

Conversation

malarzm
Copy link
Member

@malarzm malarzm commented May 23, 2016

This builds up on @notrix PR #1390 and changes way typeClass is obtained to prevent duplicating code

throw new MongoDBException('Specifying targetDocument is required for the ClassMetadata to be obtained.');
switch (true) {
case (! empty($this->typeClass)):
return $this->typeClass;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I'm thinking about this there's no point in remembering $this->typeClass (and doing so may lead to edge case if somebody would call setOwner with other mapping), I'll remove it later today

Vaidas Lažauskas and others added 2 commits May 24, 2016 19:10
Updated exception message if no document manager is associated with  PersistentCollection
@malarzm malarzm merged commit 7c0d06e into doctrine:master May 24, 2016
@malarzm malarzm deleted the notrix-patch-2 branch May 24, 2016 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant