Hi there, folks...

I have a very strange Problem with my UserComment-Model.
It consists of the fields id, submittedby, user_id, comment, created
and modified. And lately I added the field "checked", to implement a
new feature into my page. I added "checked" with:
ALTER TABLE `user_comments` ADD `checked` INT( 1 ) NOT NULL DEFAULT
'0';
which sets the checked-field in every already inserted line to 0,
because it's the default.

But when I print_r my current model, cake still just gives me the
fields which have already been there:
[UserComment] => Array (
                    [id] =>
                    [submittedby] =>
                    [user_id] =>
                    [comment] =>
                    [created] =>
                    [modified] => )
(I snipped the content...)

I'd think the checked-field just isn't there, then, BUT: When I switch
from Debug = 0 to Debug = 1 or more, the checked-field mysteriously
occurs! A print_r shows me it's precence in the UserComment-Array
(with the value 0) and the features I've coded useing the field work
without problems!

Actually it can't be the solution to run the app in debug-mode, so
could you help me find out, why the checked-field behaves like this?

Nice Greetings and thanks,
Benni

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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