Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed support of dibi 2.x. #480

Merged
merged 1 commit into from Mar 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/DataModel.php
Expand Up @@ -10,6 +10,7 @@

use Nette;
use Dibi;
use DibiFluent;
use Nette\Database\Table\Selection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\QueryBuilder;
Expand Down Expand Up @@ -61,7 +62,7 @@ public function __construct($source, $primary_key)
} else if (is_array($source)) {
$source = new DataSource\ArrayDataSource($source);

} else if ($source instanceof Dibi\Fluent) {
} else if ($source instanceof Dibi\Fluent || $source instanceof DibiFluent) {
$driver = $source->getConnection()->getDriver();

if ($driver instanceof Dibi\Drivers\OdbcDriver) {
Expand Down