[FLOW3-general] how to execute a DELETE-Statement?

Winfried Mingst admin at regionalberatung.at
Tue Apr 2 14:28:56 CEST 2013


Thanks Steffen! Your code snippet works.


By the way I found another solution to this problem:

inject \Doctrine\Common\Persistence\ObjectManager $entityManager

  $rsm = new \Doctrine\ORM\Query\ResultSetMapping();
  $results = $this->entityManager
  ->createQuery(
  'DELETE  \XY\MyPackage\Domain\Model\Objects o WHERE o.active=1',$rsm)
			  ->execute();




More information about the FLOW3-general mailing list