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

Update_many and delete_many bug #7

Closed
jenssegers opened this issue Feb 13, 2012 · 1 comment
Closed

Update_many and delete_many bug #7

jenssegers opened this issue Feb 13, 2012 · 1 comment

Comments

@jenssegers
Copy link

Both are copies from update() and delete() and contain errors.

It is better to implement them like insert_many():

$results = array();

foreach ($primary_values as $primary_value)
{
    $results[] = $this->update($primary_value, $data, $skip_validation);
}

return $results;
@jamierumbelow
Copy link
Owner

This is fixed in v1.2.0.

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