I have an entity for BannedEmail, this has only one property 'email'. In form this is separated by line, when submitted it should truncate current table and exlode the submitted emails by '\n' then flush in foreach.
1) Should I certainly use dbal to truncate? or is there a way to emty the table with ORM? 2) and when foreach the submitted data, flush() should be inside foreach, or just persist should be inside foreach, and flush after foreach? as this is per row, I guess each persist will ovverride the last one, so flush must be inside foreach? right? -- 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.
