public function associations()
    {
        if (!$this->associations) {
            if ($this->getService('rails.config')['use_cache']) {
                $this->associations = $this->getCachedData();
            } else {
                $this->associations = $this->getAssociationsData();
            }
        }
        return $this->associations;
    }