Hi Oscar Could you post some code about how to use per or post events? Thanks Marcelo
2011/6/20 oscar balladares <liebegr...@gmail.com> > Hi everybody!. > > I'm using Yaml configuration for doctrine metadata. > > All others events (prePersist, postPersist, preRemove, postRemove) are > working properly, but not the preUpdate and PostUpdate. > > Of course, I'm just calling the 'persist' method of the $EntityManager: > > $em->persist($AlreadyInDatabaseEntityInstance); > $em->flush(); > > The row in the database is updated actually, but the method is never > called. > > the easiest way to prove myself I'm not crazy, is that if the method name > that has been set in the metadata is not correct, > then when the Event is called, an exception will be thrown, i.e: > > preRemove: [ preRemoveMethod ] > > then I: $em->remove($entity) > > If the preRemoveMethod doesn't exist in the Entity class, then an > excepetion will be trhown. > In the other hand, preUpdate/postUpdate will be ignored completely. I can: > > preUpdate: [ asdfasdfaThisMethodDoesNotExistInTheEntityClassaesrseres ] > > No exception will be thrown, knowing that such method doesn't exist at all. > > (It won't happen with any other event). > > What could be wrong? > > Regards! > > -- > 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 > -- 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