public function setOptions($options)
    {
        $this->options = $options;

        if (isset($this->options['dsn'])) {
            $this->pdoDriver = new DsnQuery($this->options);
        } else {
            if (isset($this->options['connection'])) {
                $this->pdoDriver = new DefaultQuery($this->doctrine->getManager($this->options['connection']));
            } else {
                $this->pdoDriver = new DefaultQuery($this->doctrine->getManager());
            }
        }
    }
public function setOptions($options)
    {
        $this->options = $options;

        if (isset($this->options['dsn'])) {
            $this->pdoDriver = new DsnQuery($this->options);
        } else {
            if (isset($this->options['connection'])) {
                $this->pdoDriver = new DefaultQuery($this->doctrine->getManager($this->options['connection']));
            } else {
                $this->pdoDriver = new DefaultQuery($this->doctrine->getManager());
            }
        }
    }
public function setOptions ( $ options ) { $ this -> options = $ options ; if ( isset ( $ this -> options [ 'dsn' ] ) ) { $ this -> pdoDriver = new DsnQuery ( $ this -> options ) ; } else { if ( isset ( $ this -> options [ 'connection' ] ) ) { $ this -> pdoDriver = new DefaultQuery ( $ this -> doctrine -> getManager ( $ this -> options [ 'connection' ] ) ) ; } else { $ this -> pdoDriver = new DefaultQuery ( $ this -> doctrine -> getManager ( ) ) ; } } }
Set options from configuration

@param array $options Options
Set options from configuration