Remove the results getting using createquerybuilder #47923
Unanswered
shubhangi101092
asked this question in
Q&A
-
|
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


-
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.