There 'work around' doesn't exactly work:
I'd have to override schema() in my model to add the fields. Then I
could manually call deconstruct().
However, overriding schema will be done for ALL of the model's
functions. I would then get problems when performing find('all'), etc.
On Jan 13, 2:00 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Try:
>
> $property_formatted_date_string = $this->Model->deconstruct($this-
>
> >data['Model']['datefield']);
>
> When you're saving data, it seems to work fine without calling
> Model::deconstruct, but if you're doing 'custom' date fields (e.g.,
> searching records in a database) it appears that you need to
> deconstruct it yourself. When I updated from pre-beta to beta I ran
> into this problem.
>
> - B. D.
>
> On Dec 11 2007, 2:04 pm, Baz <[EMAIL PROTECTED]> wrote:
>
> > It says it was replaced by: Model::deconstruct()
>
> > But the functionality is different. Doing a direct call didn't work for me.
>
> > Even if it did, there's another issue with the latest version not saving
> > dates and times to the database. I think I'll just hold up on the SVN for
> > now. At least until they update the API.
>
> > On Dec 11, 2007 9:33 AM, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > > What does it saycleanUpFields() was replaced by? Maybe you could use
> > > that....
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---