original_string: protected function _extractForeignKey($entity)
      {
          $foreignKey = (array)$this->_config['foreignKey'];
          $primaryKey = (array)$this->_table->getPrimaryKey();
          $pkValue = $entity->extract($primaryKey);
  
          return array_combine($foreignKey, $pkValue);
      }
code: protected function _extractForeignKey($entity)
      {
          $foreignKey = (array)$this->_config['foreignKey'];
          $primaryKey = (array)$this->_table->getPrimaryKey();
          $pkValue = $entity->extract($primaryKey);
  
          return array_combine($foreignKey, $pkValue);
      }
code_tokens: protected function _extractForeignKey ( $ entity ) { $ foreignKey = ( array ) $ this -> _config [ 'foreignKey' ] ; $ primaryKey = ( array ) $ this -> _table -> getPrimaryKey ( ) ; $ pkValue = $ entity -> extract ( $ primaryKey ) ; return array_combine ( $ foreignKey , $ pkValue ) ; }
docstring: Returns an array with foreignKey value.
  
  @param \Cake\Datasource\EntityInterface $entity Entity.
  @return array
docstring_tokens: Returns an array with foreignKey value .