protected function _associated(Table $table, array $associations)
    {
        foreach ($associations as $key => $associated) {
            if (is_int($key)) {
                $this->_checkAssociation($table, $associated);
                continue;
            }
            $this->_checkAssociation($table, $key);
            if (isset($associated['associated'])) {
                $this->_associated($table->getAssociation($key)->getTarget(), $associated['associated']);
                continue;
            }
        }
    }
protected function _associated(Table $table, array $associations)
    {
        foreach ($associations as $key => $associated) {
            if (is_int($key)) {
                $this->_checkAssociation($table, $associated);
                continue;
            }
            $this->_checkAssociation($table, $key);
            if (isset($associated['associated'])) {
                $this->_associated($table->getAssociation($key)->getTarget(), $associated['associated']);
                continue;
            }
        }
    }
protected function _associated ( Table $ table , array $ associations ) { foreach ( $ associations as $ key => $ associated ) { if ( is_int ( $ key ) ) { $ this -> _checkAssociation ( $ table , $ associated ) ; continue ; } $ this -> _checkAssociation ( $ table , $ key ) ; if ( isset ( $ associated [ 'associated' ] ) ) { $ this -> _associated ( $ table -> getAssociation ( $ key ) -> getTarget ( ) , $ associated [ 'associated' ] ) ; continue ; } } }
Checks that the associations exists recursively.

@param \Cake\ORM\Table $table Table object.
@param array $associations An associations array.
@return void
Checks that the associations exists recursively .