If you are using CakePHP 1.2 default values for fields will be auto
populated before saving record.

I see nothing wrong with overriding loadInfo(), that's why it's there for,
but my question is what's the scenario that there are "lots" of fields that
you will be never handling with Cake? Are you managing a table not specific
to your Cake application?

-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: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de RayChicago
Enviado el: Martes, 20 de Marzo de 2007 09:45 a.m.
Para: Cake PHP
Asunto: overwriting loadInfo() in Model to get rid of unwanted columns

1) is there a more elegant way ? (perhaps a way to define default
values for models where there are fields which are required to be "not
null")

2) will I run into serious problems using this approach ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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