One thing to remember is that after you overload a method in your parent class to call the parent class to continue execution if you need that. For example if you have a class defined as:
class ChildClass extends ParentClass and the ParentClass has a method such as: protected function functionToOverwrite($parameter) Then to overwrite and allow it to do what it needs to do you do in your ChildClass: protected function functionToOverwrite($parameter) { //All code here for my stuff //I am now finished so call parent parent::functionToOverwrite($parameter); } And thats that. Hope it helps. On Friday 04 June 2010 13:01:36 Javier Garcia wrote: > Hi, > > i want to overwrite a method of > symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php. > > I think a good way could be writing again the method in the form class > where i need that method. > > In that case if i need that method in other form class should i write > again the new method, so i would break the rule DRY... > > So is there any better way? -- 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