[Flow] Use Query to delet data from repository

Winfried Mingst admin at regionalberatung.at
Thu Jul 25 09:51:20 CEST 2013


Am 25.07.2013 09:06, schrieb Christian Loock:
> Hi,
>
> just a quick question: Is there a way to use the result of a query to
> delete database entries?
>
> Greetings,
>
> Christian
Hi,

probably not the best way - loop the result and execute something like this:

$this->entityManager->createQuery('DELETE  \My\Package\Domai\Model\Test 
t WHERE t.color='.$someValue)->execute();


More information about the Flow mailing list