[symfony-users] Re: handle processForm()

2010-03-03 Thread Tom Ptacnik
Try to call parent setName method this way parent::_set('name', $value); On 2 bře, 11:36, verox pawel.rz...@gmail.com wrote: Added this to class Article extends BaseArticle, and have Connection To Server Failed It's Doctrine btw On 27 Lut, 12:21, jp_morvan sacri...@free.fr wrote: Hi,

[symfony-users] Re: handle processForm()

2010-03-03 Thread Tom Ptacnik
public function setName($name) { $letter = strtoupper(substr($name, 0, 1)); $this-_set('letter', $letter); return $this-_set('name', $name); } On 3 bře, 10:13, Tom Ptacnik to...@tomor.cz wrote: Try to call parent setName method this way parent::_set('name', $value); On 2 bře, 11:36,

[symfony-users] Re: handle processForm()

2010-02-28 Thread Tom Ptacnik
If you don't have a special reason to do that in the process form method I would advice to do it - in the form - by overwriting the doUpdateObject() method (on the end call parent::doUpdateObject($values); ) or better, if you want this behaviour all the time (not only when the name is changed by

[symfony-users] Re: handle processForm()

2010-02-27 Thread verox
I'm trying this while creating new object. Overwrite protected function processForm(sfWebRequest $request, sfForm $form) -- 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

[symfony-users] Re: handle processForm()

2010-02-27 Thread jp_morvan
Hi, Did you try in you model file to override the method setName() ? public function setName($name){ $letter = strtoupper(substr($name, 0, 1)); $this-setLetter($letter); parent::setName($name); } On 27 fév, 10:51, verox pawel.rz...@gmail.com wrote: I'm trying this while creating new

[symfony-users] Re: handle processForm()

2010-02-26 Thread verox
Anybody? -- 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

[symfony-users] Re: handle processForm()

2010-02-26 Thread Tom Ptacnik
Are you trying to do this while creating a new object, or editing an object? or both? In which method do you have this code? On 25 ún, 11:22, verox pawel.rz...@gmail.com wrote: Hello, Got some problem, Have name and letter in table, both string. I've generate admin page, now I'm trying to