Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Aug 31, 2019
1 parent 39fc1f0 commit 42821b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [7.2.1] - 2019-08-31
### Fixed
- FieldFactories are not initialized in the database constructor.

## [7.2.0] - 2019-08-25
### Added
- New method `Row::reload()` refresh the data from the database and, optionally, discard changes.
Expand Down Expand Up @@ -35,5 +39,6 @@ This library was rewritten and a lot of breaking changes were included.
- The pagination info is returned with `$selectQuery->getPageInfo()` function.
- Many other changes. See the docs.

[7.2.1]: https://github.com/oscarotero/simple-crud/compare/v7.2.0...v7.2.1
[7.2.0]: https://github.com/oscarotero/simple-crud/compare/v7.1.0...v7.2.0
[7.1.0]: https://github.com/oscarotero/simple-crud/compare/v7.0.0...v7.1.0
2 changes: 1 addition & 1 deletion src/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function __construct(PDO $pdo, SchemeInterface $scheme = null, array $fie
{
$this->connection = new Connection($pdo);
$this->scheme = $scheme;
$this->fieldFactories = $fieldFactories ?: self::createDefaultFieldFactories();

if ($scheme) {
return;
Expand All @@ -63,7 +64,6 @@ public function __construct(PDO $pdo, SchemeInterface $scheme = null, array $fie
throw new RuntimeException(sprintf('Invalid engine type: %s', $engine));
}

$this->fieldFactories = $fieldFactories ?: self::createDefaultFieldFactories();
}

/**
Expand Down

0 comments on commit 42821b3

Please sign in to comment.