DDC-275: Improve QueryBuilder docs #342

Closed
opened 2026-01-22 12:35:28 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 25, 2010).

Jira issue originally created by user shurakai:

Within the QueryBuilder section, it should be described that params can be bound by using setParameter($key, $value) or setParameters($array)

Also, it should be mentioned that using $queryBuilder->expr()->in('field', array( 'string' ) ); is not valid and instead of using a string, one must use ?1 and set the param by using setParameters. (Otherwise, an exception would be thrown)

Originally created by @doctrinebot on GitHub (Jan 25, 2010). Jira issue originally created by user shurakai: Within the QueryBuilder section, it should be described that params can be bound by using setParameter($key, $value) or setParameters($array) Also, it should be mentioned that using $queryBuilder->expr()->in('field', array( **'string'** ) ); is not valid and instead of using a string, one must use ?1 and set the param by using setParameters. (Otherwise, an exception would be thrown)
admin added the Improvement label 2026-01-22 12:35:28 +01:00
admin closed this issue 2026-01-22 12:35:28 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 12, 2010):

Comment created by shurakai:

Added some changes here b857655992

Further improvements will be appreciated!

@doctrinebot commented on GitHub (May 12, 2010): Comment created by shurakai: Added some changes here http://github.com/Shurakai/orm-documentation/commit/b8576559928e665fccbe8a0321c52e500f7c4e5b Further improvements will be appreciated!
Author
Owner

@doctrinebot commented on GitHub (May 13, 2010):

Comment created by romanb:

The formatting seems to be a bit broken, maybe a tabs/spaces issue? (we use spaces only).
I will pull this upstream then soon.

@doctrinebot commented on GitHub (May 13, 2010): Comment created by romanb: The formatting seems to be a bit broken, maybe a tabs/spaces issue? (we use spaces only). I will pull this upstream then soon.
Author
Owner

@doctrinebot commented on GitHub (May 13, 2010):

Comment created by romanb:

OK, I see this is already committed. Can you just take a second look at the formatting? Thanks.

This can be closed then as you see fit.

@doctrinebot commented on GitHub (May 13, 2010): Comment created by romanb: OK, I see this is already committed. Can you just take a second look at the formatting? Thanks. This can be closed then as you see fit.
Author
Owner

@doctrinebot commented on GitHub (May 20, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (May 20, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#342