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

Where clause with array param #58

Closed
lalop opened this issue Apr 25, 2013 · 2 comments
Closed

Where clause with array param #58

lalop opened this issue Apr 25, 2013 · 2 comments

Comments

@lalop
Copy link

lalop commented Apr 25, 2013

I think that can be a good thing to permit make one single call to the where method for multiple conditions. Something like that :

public function where($column_name, $value = null) {
    if(is_array($column_name)){
        $self = $this;
        foreach($column_name as $key=>$value){
            $self = $self->where_equal($key, $value);
        }
        return $self;
    } else {
        return $this->where_equal($column_name, $value);
    }
}
@lalop lalop closed this as completed Apr 25, 2013
@lalop lalop reopened this Apr 25, 2013
@treffynnon
Copy link
Collaborator

Thank you for reporting this issue. Unfortunately this code looks like part of Idiorm and not Paris. Please could you open a ticket there instead.

@lalop
Copy link
Author

lalop commented Apr 25, 2013

oooh, yes
sorry

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