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

Enhancement: Allow where() to Accept unique and queryOptions Arguments #2

Closed
richardherbert opened this issue Jul 23, 2013 · 1 comment

Comments

@richardherbert
Copy link

Enhancement:
There are times when it would be useful for the where() method in AbstractDAO.cfc to accept the unique and queryOptions arguments as executeQuery() does.

Solution:
Change line 79 from...

array function where( required string clause, struct params={} ){

...to...

array function where( required string clause, struct params={}, unique=false, queryOptions={} ){

...and line 81 from...

return ORMExecuteQuery( hql, arguments.params );

...to...

return ORMExecuteQuery( hql, arguments.params, arguments.unique, arguments.queryOptions );

@aliaspooryorik
Copy link
Owner

fixed in commit 8b86848

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

No branches or pull requests

2 participants