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".
Although it has never been possible to mark "root" documents
final
, embedded documents may be markedfinal
since they are embedded inside other classes when generating proxies. Since 1.6.0, however, the following error is thrown whereFoo
is an@EmbeddedDocument
class.