Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Add text field type
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanvierkant authored Oct 24, 2017
1 parent e9394b6 commit b0758be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Response/DatatableQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ private function setWhere(QueryBuilder $qb)
// Only StringExpression can be searched with LIKE (https://github.com/doctrine/doctrine2/issues/6363)
if (
// Not a StringExpression
!preg_match('/string|date|time/', $column->getTypeOfField())
!preg_match('/text|string|date|time/', $column->getTypeOfField())
// Subqueries can't be search with LIKE
|| preg_match('/SELECT.+FROM.+/is', $searchField)
// CASE WHEN can't be search with LIKE
Expand Down

0 comments on commit b0758be

Please sign in to comment.