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

added where::asLiteral #68

Merged
merged 1 commit into from
Nov 16, 2015
Merged

Conversation

malteriesch
Copy link

Added method to add more 'free-form' where conditionals:

$this->query
    ->setTable('user')
    ->where()
    ->asLiteral("(username is not null and status=:status)")
    ->notEquals('name', '%N%');

which will result in the query

SELECT user.* FROM user WHERE (username is not null and status=:status) AND (user.name <> :v1)

@scrutinizer-notifier
Copy link

The inspection completed: 1 updated code elements

@nilportugues
Copy link
Owner

Nice addition and great to see test pass! I'm merging this

nilportugues added a commit that referenced this pull request Nov 16, 2015
@nilportugues nilportugues merged commit cf7fc7b into nilportugues:master Nov 16, 2015
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.

None yet

3 participants