public function __construct() { parent::__construct(); $this->namespaces = new DoctrineNamespaces(); if (APPLICATION_ENV == "development") { $cache = new ArrayCache(); } else { $cache = new ApcCache(); } $this->setMetadataCacheImpl($cache); $this->setQueryCacheImpl($cache); //@TODO wywalić to na zewnątrz $this->setProxyDir(ROOT_PATH . '/lib/NetBricks/Proxies'); $this->setProxyNamespace('NetBricks\\Proxies'); if (APPLICATION_ENV == "development") { $this->setAutoGenerateProxyClasses(true); } else { $this->setAutoGenerateProxyClasses(false); } }