diff --git a/src/Phinx/Db/Adapter/PdoAdapter.php b/src/Phinx/Db/Adapter/PdoAdapter.php index fcb199472..1195c5467 100644 --- a/src/Phinx/Db/Adapter/PdoAdapter.php +++ b/src/Phinx/Db/Adapter/PdoAdapter.php @@ -45,6 +45,20 @@ abstract class PdoAdapter extends AbstractAdapter */ protected $connection; + /** + * {@inheritdoc} + */ + public function setOptions(array $options) + { + $this->options = $options; + + if (isset($options['connection'])) { + $this->setConnection($options['connection']); + } + + return $this; + } + /** * Sets the database connection. *