protected function assertTroughKeys($inKeys, $outKeys)
    {
        if (empty($inKeys) || empty($outKeys)) {
            throw new DefinitionException(sprintf('Invalid keys for relation "%s", must be two arrays with key-value pairs', $this->entity, count($inKeys)));
        }

        if (count($inKeys) !== count($outKeys)) {
            throw new DefinitionException(sprintf('Both key arrays for relation "%s", must have the same number of elements', $this->entity));
        }
    }
protected function assertTroughKeys($inKeys, $outKeys)
    {
        if (empty($inKeys) || empty($outKeys)) {
            throw new DefinitionException(sprintf('Invalid keys for relation "%s", must be two arrays with key-value pairs', $this->entity, count($inKeys)));
        }

        if (count($inKeys) !== count($outKeys)) {
            throw new DefinitionException(sprintf('Both key arrays for relation "%s", must have the same number of elements', $this->entity));
        }
    }
protected function assertTroughKeys ( $ inKeys , $ outKeys ) { if ( empty ( $ inKeys ) || empty ( $ outKeys ) ) { throw new DefinitionException ( sprintf ( 'Invalid keys for relation "%s", must be two arrays with key-value pairs' , $ this -> entity , count ( $ inKeys ) ) ) ; } if ( count ( $ inKeys ) !== count ( $ outKeys ) ) { throw new DefinitionException ( sprintf ( 'Both key arrays for relation "%s", must have the same number of elements' , $ this -> entity ) ) ; } }
Asserts trough keys, must be same number in both arrays

@param array $inKeys
@param array $outKeys

@throws DefinitionException
Asserts trough keys must be same number in both arrays