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 »