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

fixes #1266 #1267

Merged
merged 5 commits into from
Mar 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
phpcs
  • Loading branch information
oleg-andreyev committed Feb 3, 2022
commit 03e2054bf5af0164f938c13cf872c8a2c66fde63
4 changes: 2 additions & 2 deletions src/EventListener/Doctrine/RemoveListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public function preRemove(EventArgs $event): void
$object = $this->adapter->getObjectFromArgs($event);

if ($this->isUploadable($object)) {
if ($object instanceof Proxy) {
if ($object instanceof Proxy) {
$object->__load();
}
$this->entities[] = $object;
$this->entities[] = $object;
}
}

Expand Down