Hi sunertl

I don't use 1.2 yet, but in I expect that it is the same as 1.x

the field 'created' (and the field 'modified') are special fields in 
Cake.  It will automatically update these fields for you when you create 
and save models.  They do require the data type of date/time to work and 
will cause problems if they are changed to say integer.

I am unsure why you can't just choose another name for your field (if it 
has to contain different data).  Or do you just want to store your 
created time in milliseconds?  If so, why not use the afterFind() 
callback to convert the date/time into milliseconds, or something similar?

If you provide a bit more info about what you are trying to achieve then 
I am sure that someone will have a solution for you.

Regards,
Langdon


> I use the (amazing) 1.2 alpha-release for a few days now and have
> problems with fields named "created" in db-tables. For some reasons I
> do not use datetime but integer for "created". Cake seems to have
> problems with that because I always get errors in line 1052 in cake/
> model/model.php.
> I tried to figure it out myself but because I use this at work I could
> not search for a very long time. As far as I can see the only problem
> is the datatype because it is not datetime. Am I not free to choose
> the datatype when I call the field "created"? That would be some very
> hard restriction...

--~--~---------~--~----~------------~-------~--~----~
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