doctrine / mongodb

PHP MongoDB Abstraction Layer
https://www.doctrine-project.org/projects/mongodb.html
MIT License
442 stars 190 forks source link

BC break: 1.5.0 => 1.6.0: Proxy generation: embedded documents can no longer be marked final #302

Closed Bilge closed 7 years ago

Bilge commented 7 years ago

Although it has never been possible to mark "root" documents final, embedded documents may be marked final since they are embedded inside other classes when generating proxies. Since 1.6.0, however, the following error is thrown where Foo is an @EmbeddedDocument class.

[Doctrine\Common\Proxy\Exception\InvalidArgumentException]
Unable to create a proxy for a final class "Foo".

Bilge commented 7 years ago

Never mind, this is a doctrine/common issue.