$this->Model->create() would create an "empty" model, cleaning it of old
values it may have. If you look at cake/libs/model/model.php you'll see that
create is defined as following:

function create($data = array())

So no parameters would be the same as sending it an empty array().

Also on model.php you can see that save() still gets the data:

save($data = null, $validate = true, $fieldList = array())

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.

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, 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 Á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().


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to