Remove the results getting using createquerybuilder #47923
Unanswered
shubhangi101092
asked this question in
Q&A
Replies: 2 suggested answers
-
What do you mean? Why couldn't you use |
Beta Was this translation helpful? Give feedback.
0 replies
-
You have to call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi ,
I have request Manager class which is inherting entitymanagerinterface.
In my function I am getting results but not able to delete using remove function
return $this->requestRepository->createQueryBuilder('cat')
| ->andWhere('cat.name = :searchTerm')
| ->setParameter('searchTerm', $term)
| ->getQuery()
| ->getResults();
Now what to delete these records using remove function instead of delete.
How can I achieve that ?
Beta Was this translation helpful? Give feedback.