sorry for this, just to make sure if you've seen my latest
post before sending your previous answer (possible cross emailing), please
see below:

I wasn't ware of findAll() as I was looking wiki, found it on api then
using this:
$emails = $em->getRepository('Entities\BannedEmail')->findAll();
foreach ($emails as $email) {
$blah = $em->remove($email);
}
$em->flush($blah);
Am I in correct way to do so?



On Fri, Apr 18, 2014 at 6:38 PM, Herman Peeren <[email protected]>wrote:

> On Friday, 18 April 2014 15:01:29 UTC+2, Parsifal wrote:
>>
>> Does orm recognize something like this to truncate table?
>> $em->delete()->from('BannedEmails')->execute();
>> Plz advice.
>>
>
> The question is in not in an optimal format to be answered: we are not the
> manual, not a board of advisers and no debugger of your code.
> Please look things up in manual, API-description, Google and in the code
> itself. Then try out and try to understand the error-description. If you
> didn't succeed understanding the error-description, then post a clear
> question with your problem.
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to