Doctrine 2.0 documentation recommends against serializing entities. If you ignore the documentation, you will be faced with PHP notices, such as Notice: Unknown: “id” returned as member variable from __sleep() but does not exist in Unknown on line 0 as well as broken object relations on unserialized objects. But its very tempting to use the… Read more »
Posts Tagged: Zend
Bisna lib and Doctrine 2.1
Those of you using Bisna library to easily hook Doctrine 2 ORM into Zend Framework, may find that it is incompatible with Doctrine 2.1. The reason is the rewritten annotation reader in Doctrine 2.1, which Bisna doesn’t support. However, its easy to update it. In Bisna/Application/Container/DoctrineContainer.php, find the method startORMMetadata (should be the last method… Read more »