private function getRelationConfigurationFromTca($key)
    {
        $tca = \Tx_Oelib_Db::getTcaForTable($this->getTableName());

        if (!isset($tca['columns'][$key])) {
            throw new \BadMethodCallException(
                'In the table ' . $this->getTableName() . ', the column ' . $key . ' does not have a TCA entry.',
                1331319627
            );
        }

        return $tca['columns'][$key]['config'];
    }
private function getRelationConfigurationFromTca($key)
    {
        $tca = \Tx_Oelib_Db::getTcaForTable($this->getTableName());

        if (!isset($tca['columns'][$key])) {
            throw new \BadMethodCallException(
                'In the table ' . $this->getTableName() . ', the column ' . $key . ' does not have a TCA entry.',
                1331319627
            );
        }

        return $tca['columns'][$key]['config'];
    }
private function getRelationConfigurationFromTca ( $ key ) { $ tca = \ Tx_Oelib_Db :: getTcaForTable ( $ this -> getTableName ( ) ) ; if ( ! isset ( $ tca [ 'columns' ] [ $ key ] ) ) { throw new \ BadMethodCallException ( 'In the table ' . $ this -> getTableName ( ) . ', the column ' . $ key . ' does not have a TCA entry.' , 1331319627 ) ; } return $ tca [ 'columns' ] [ $ key ] [ 'config' ] ; }
Retrieves the configuration of a relation from the TCA.

@param string $key
the key of the relation to retrieve, must not be empty

@return array configuration for that relation, will not be empty if the TCA is valid

@throws \BadMethodCallException
Retrieves the configuration of a relation from the TCA .