public function getRelationCache() { if (BeanFinder::has('relationcache')) { return BeanFinder::get('relationcache'); } $cache = new DALRelationCacheManager($this->getCache(Cacher::CACHETYPE_RELATION)); BeanFinder::register('relationcache', $cache); return $cache; }