php - Delete collection of records from database using symfony2 -


i want select set of records table(process) process , delete it.

i running following query select. how delete selected records of group statement in symfony2.

createquery('select process webbundle:process process                        group process.tag')->getresult(); 

how delete rows selected using symfony2?

you can use query builder that.

$qb = $em->createquerybuilder(); $qb->delete('processes', 'p'); 

for more info, check documentation - dql - delete queries.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -