original_string: 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;
              }
          }
      }
code: 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;
              }
          }
      }
code_tokens: 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 ; } } }
docstring: Checks that the associations exists recursively.
  
  @param \Cake\ORM\Table $table Table object.
  @param array $associations An associations array.
  @return void
docstring_tokens: Checks that the associations exists recursively .