Skip to content

Commit

Permalink
attempt to fix #1170 (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
swiffer authored and lorenzo committed Sep 7, 2017
1 parent 3d39d9d commit 2cdf9da
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Phinx/Db/Adapter/PdoAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 2cdf9da

Please sign in to comment.