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
@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
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
@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
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
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
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
, 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
://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
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
-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
@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
, 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
13 matches
Mail list logo