protected function _loadAssociations()
    {
        foreach ($this->Model->associations()->getIterator() as $association => $assocData) {
            $this->set(Inflector::variable($assocData->alias()), $this->Model->{$association}->find('list')->toArray());
        }
    }
protected function _loadAssociations()
    {
        foreach ($this->Model->associations()->getIterator() as $association => $assocData) {
            $this->set(Inflector::variable($assocData->alias()), $this->Model->{$association}->find('list')->toArray());
        }
    }
protected function _loadAssociations ( ) { foreach ( $ this -> Model -> associations ( ) -> getIterator ( ) as $ association => $ assocData ) { $ this -> set ( Inflector :: variable ( $ assocData -> alias ( ) ) , $ this -> Model -> { $ association } -> find ( 'list' ) -> toArray ( ) ) ; } }
Dynamically loads all associations of the model.

@return void
Dynamically loads all associations of the model .