Hi Herman,
Thanks for all kind helps. It works now. Just a quick question:
That $_POST['bannedEmails'] is actually a textarea with line separated
emails, then I use
$emails = @explode("\n", $_POST['bannedEmails']);
Then in a foreach I am trying to add emails to entity, I noticed if I
instantiate entity before loop, only first loop is a new entity, and next
loop update the first one instead of adding the new email, so am I correct
that I should instantiate the entity and persist it inside loop and flush
it when loop finished?On Sat, Apr 19, 2014 at 12:30 PM, Nima Sadjadi <[email protected]> wrote: > And now did you discover why I said paypal ipn is a problem with primary > key? :-) > I believe it should be set in constructor too? > Thanks for all kind helps. > -- 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.
