Skip to content

Add support for paginating WHERE NOT ... queries#268

Merged
beberlei merged 2 commits intodoctrine:masterfrom
sandermarechal:paginate-where-not
Jan 23, 2012
Merged

Add support for paginating WHERE NOT ... queries#268
beberlei merged 2 commits intodoctrine:masterfrom
sandermarechal:paginate-where-not

Conversation

@sandermarechal
Copy link
Contributor

The Pagination tool throws an exception on a DQL query like:

SELECT u FROM User u WHERE NOT (u INSTANCE OF Person)

This is because Paginate does not know about the
Doctrine\ORM\Query\AST\ConditionalFactor which implements the NOT
operator. This patch adds support for that.

Ported from beberlei/DoctrineExtentions as requested by @beberlei in PR#52

The Pagination tool throws an exception on a DQL query like:

SELECT u FROM User u WHERE NOT (u INSTANCE OF Person)

This is because Paginate does not know about the
Doctrine\ORM\Query\AST\ConditionalFactor which implements the NOT
operator. This patch adds support for that.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indentation

beberlei added a commit that referenced this pull request Jan 23, 2012
Add support for paginating WHERE NOT ... queries
@beberlei beberlei merged commit aca20fc into doctrine:master Jan 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants