beforeSave problem (1.2)

2007-02-13 Thread Ámon Tamás
Hello, I have a beforeSave() in my Classadd model. In here I adding some extra value for the database row, somethind like this: $this-data['Classadd']['emailazon'] = $this-RandString(24); but, when I try to get back this data after the $this-Classadd-save($this-data) In the

RE: beforeSave problem (1.2)

2007-02-13 Thread Mariano Iglesias
@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de Ámon Tamás Enviado el: Martes, 13 de Febrero de 2007 06:04 a.m. Para: Cake PHP Asunto: beforeSave problem (1.2) I have a beforeSave() in my Classadd model. In here I adding some extra value for the database row, somethind like this: $this-data

Re: beforeSave problem (1.2)

2007-02-13 Thread Ámon Tamás
Mariano Iglesias wrote: If you are using CakePHP 1.2 (as you stated) then do not pass $data to the save model, instead first construct the model with your data and then call save: $this-Classad-create($this-data); Is it $this-Classad-create() same? How I see what the bake.php make there

RE: beforeSave problem (1.2)

2007-02-13 Thread Mariano Iglesias
@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de Ámon Tamás Enviado el: Martes, 13 de Febrero de 2007 10:59 a.m. Para: cake-php@googlegroups.com Asunto: Re: beforeSave problem (1.2) Is it $this-Classad-create() same? How I see what the bake.php make there is no parameters for create

RE: beforeSave problem (1.2)

2007-02-13 Thread Mariano Iglesias
problem (1.2) but, unlike create(), it is not considering default values that the table may have, and may soon be removed, so eventhough you may be inclined to send data to save(), try to avoid it. --~--~-~--~~~---~--~~ You received this message because you

Re: beforeSave problem (1.2)

2007-02-13 Thread nate
As of CakePHP 1.2 save() no longer expects the data. Use create() to specify it. No, bad, wrong, incorrect. categorically false. Parameter usage has been deprecated for Model::validates() and Model::invalidFields(). If there is something you are or aren't supposed to do, either PhpNut or

RE: beforeSave problem (1.2)

2007-02-13 Thread Mariano Iglesias
el: Martes, 13 de Febrero de 2007 12:16 p.m. Para: Cake PHP Asunto: Re: beforeSave problem (1.2) No, bad, wrong, incorrect. categorically false. Parameter usage has been deprecated for Model::validates() and Model::invalidFields(). If there is something you are or aren't supposed to do, either

Re: beforeSave problem (1.2)

2007-02-13 Thread nate
, 13 de Febrero de 2007 12:16 p.m. Para: Cake PHP Asunto: Re: beforeSave problem (1.2) No, bad, wrong, incorrect. categorically false. Parameter usage has been deprecated for Model::validates() and Model::invalidFields(). If there is something you are or aren't supposed to do, either PhpNut

Re: beforeSave problem (1.2)

2007-02-13 Thread the_woodsman
://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de nate Enviado el: Martes, 13 de Febrero de 2007 12:16 p.m. Para: Cake PHP Asunto: Re: beforeSave problem (1.2) No, bad, wrong, incorrect. categorically false. Parameter

RE: beforeSave problem (1.2)

2007-02-13 Thread Mariano Iglesias
Enviado el: Martes, 13 de Febrero de 2007 01:52 p.m. Para: Cake PHP Asunto: Re: beforeSave problem (1.2) The problem with misinformation is that it's like playing telephone. You don't just negatively impact the person you told. You also impact the people he tells, and so on and so forth. Before

Re: beforeSave problem (1.2)

2007-02-13 Thread nate
-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de nate Enviado el: Martes, 13 de Febrero de 2007 12:16 p.m. Para: Cake PHP Asunto: Re: beforeSave problem (1.2) No, bad, wrong, incorrect. categorically false. Parameter usage has been deprecated for Model::validates

RE: beforeSave problem (1.2)

2007-02-13 Thread Mariano Iglesias
@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de nate Enviado el: Martes, 13 de Febrero de 2007 02:17 p.m. Para: Cake PHP Asunto: Re: beforeSave problem (1.2) Perhaps I expected too much of Mariano. --~--~-~--~~~---~--~~ You received this message because you

RE: beforeSave problem (1.2)

2007-02-13 Thread Mariano Iglesias
, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de the_woodsman Enviado el: Martes, 13 de Febrero de 2007 01:56 p.m. Para: Cake PHP Asunto: Re: beforeSave problem (1.2