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

Clarify query_builder closure return type #5228

Closed
wants to merge 1 commit into from
Closed

Conversation

kix
Copy link
Contributor

@kix kix commented May 4, 2015

It wasn't clear what the Closure should return when passing it in the query_builder option.

@@ -165,7 +165,7 @@ If specified, this is used to query the subset of options (and their
order) that should be used for the field. The value of this option can
either be a ``QueryBuilder`` object or a Closure. If using a Closure,
it should take a single argument, which is the ``EntityRepository`` of
the entity.
the entity, and return an instance of ``QueryBuilder``.
Copy link
Member

Choose a reason for hiding this comment

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

can you please remove the serial comma before "and"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wouterj, done

It wasn't clear what the Closure should return when passing it in the `query_builder` option.
@wouterj
Copy link
Member

wouterj commented May 16, 2015

👍

@weaverryan
Copy link
Member

Easy win! Thanks Stepan!

@weaverryan weaverryan closed this May 23, 2015
weaverryan added a commit that referenced this pull request May 23, 2015
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #5228).

Discussion
----------

Clarify `query_builder` closure return type

It wasn't clear what the Closure should return when passing it in the `query_builder` option.

Commits
-------

fbe9ea5 Clarify `query_builder` closure return type
@kix
Copy link
Contributor Author

kix commented May 23, 2015

@weaverryan, thanks for merging! 👍

@kix kix deleted the patch-3 branch May 23, 2015 19:56
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