-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add update & delete to Store class #78
Comments
@Timu57 |
@rakibtg it will be a public method. I also thought about naming the method deleteById What do you think what could be the best fitting name? |
@Timu57 Can't we already do that? Example: $qb = $store->getQueryBuilder();
$foo = $qb->where("name", "=", "Foo")->getQuery();
print_r($foo->fetch());
$foo->delete(); |
@rakibtg yes we can. $store->deleteById($id); We also could create a function deleteBy($criteria, $returnOption = Query::DELETE_RETURN_BOOL): bool|int|array
|
@Timu57 I have mixed feeling for
|
For simple queries conveniently update and delete documents without the need of QueryBuilder.
Update one or multiple documents.
Delete one document.
For more return options look into #77
The text was updated successfully, but these errors were encountered: