he, try to "return false" in your preInsert Method, it think it should work
On May 27, 12:39 am, comb <sa...@gmx.net> wrote: > Hi, > > i'm writing a CheckFloodable-Behavior. > Before a new record is saved, I would like to prevent the insertion of > the new record if the user did not wait long enough. > It's very dirty since I use the sfContext::getInstance() quite much, > but my question is, how would one prevent the insertion? is it ever > possible`to prevent it within a listener or do I have to write a check > in every new/create action if the model?? > I tried a redirection within the listener, but the record is inserted > anyway... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en