src/Rails/ActiveRecord/Associations/Associations.php
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;
    }
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;
    }
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 ; }
Get all associations and their options.

@return array
Get all associations and their options .