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

using relation for delete and update #276

Open
foxmedo opened this issue Oct 14, 2018 · 0 comments
Open

using relation for delete and update #276

foxmedo opened this issue Oct 14, 2018 · 0 comments

Comments

@foxmedo
Copy link

foxmedo commented Oct 14, 2018

hello all,

how can we use relation has many for delete and update

for example i have a user which has many posts

i want to make one query

currently i'm doing this

$data = array('status'=>'0');
$query = $this->users_model->update($data,$id);
$query_posts = $this->posts_model->where('user_id',$id)->update($data);
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

1 participant