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
Post a Comment