Skip to content

Commit

Permalink
Merge pull request #340 from j4mie/develop
Browse files Browse the repository at this point in the history
Publish v1.5.6 of Idiorm
  • Loading branch information
treffynnon authored May 30, 2018
2 parents d006418 + ed8293a commit ee3022f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ is a Docker setup in `./test/docker_for_php52` - check the readme in there for m

Changelog
---------
#### 1.5.6 - released 2018-05-31

* Assign `null` to `self::$_db` on `reset_db()` to ensure PDO closes the connections [[bleakgadfly](https://github.com/bleakgadfly)] - [issue #338](https://github.com/j4mie/idiorm/issues/338)

#### 1.5.5 - released 2018-01-05

* Add a docker setup for testing with PHP 5.2 (uses PHPUnit 3.6.12, which is the last version released compatible with PHP 5.2) [Treffynnon](https://github.com/treffynnon)
* Add a docker setup for testing with PHP 5.2 (uses PHPUnit 3.6.12, which is the last version released compatible with PHP 5.2) [[Treffynnon](https://github.com/treffynnon)]

#### 1.5.4 - released 2018-01-04

Expand Down
4 changes: 3 additions & 1 deletion idiorm.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,11 @@ public static function set_db($db, $connection_name = self::DEFAULT_CONNECTION)
}

/**
* Delete all registered PDO objects in _db array.
* Close and delete all registered PDO objects in _db array.
*/
public static function reset_db() {
self::$_db = null;

self::$_db = array();
}

Expand Down

0 comments on commit ee3022f

Please sign in to comment.