Abstract Factory + Proxy for Doctrine Cache in Yii