Skip to content

Commit

Permalink
Merge branch 'master' of github.com:o5/grido
Browse files Browse the repository at this point in the history
  • Loading branch information
o5 committed May 26, 2014
2 parents 7e0267b + 5a45cc0 commit c7eec65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Grido/DataSources/Doctrine.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
namespace Grido\DataSources;

use Doctrine\ORM\Tools\Pagination\Paginator,
Grido\Components\Filters\Condition;
Grido\Components\Filters\Condition,
Nette\Utils\Strings;

/**
* Doctrine data source.
Expand Down Expand Up @@ -137,7 +138,7 @@ protected function makeWhere(Condition $condition, \Doctrine\ORM\QueryBuilder $q
if (!Condition::isOperator($column)) {
$columns[$key] = isset($this->filterMapping[$column])
? $this->filterMapping[$column]
: $this->qb->getRootAlias() . '.' . $column;
: Strings::contains($column, ".") ? $column : $this->qb->getRootAlias() . '.' . $column;
}
}

Expand Down
2 changes: 1 addition & 1 deletion Grido/DataSources/IDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Grido\DataSources;

/**
* Defined method that must be implemented data source.
* The interface defines methods that must be implemented by each data source.
*
* @package Grido
* @subpackage DataSources
Expand Down

0 comments on commit c7eec65

Please sign in to comment.