> > Depending on your Cake version, you can use this, or you might have to
> > use its replacement, which is deconstruct() in the Model.
>
> Nope, you don't have to call deconstruct(), it gets called
> automatically.  Just pass your form data to set()/save()/create() like
> normal.

This is the error I get when I just save() the form data (debug shows
the $data is unchanged):

Warning (2): preg_match() expects parameter 2 to be string, array
given [CORE/cake/libs/model/model.php, line 2113]

When I rename the index manually without unsetting $data['Student']
['geburtsjahr']['year'] it works but I get this:

Warning (2): Cannot modify header information - headers already sent
by (output started at /Applications/MAMP/htdocs/lessons07/cake/
basics.php:192) [CORE/cake/libs/controller/controller.php, line 546]

Renaming and unsetting $data['Student']['geburtsjahr']['year'] fails
with this:

Fatal error: Cannot unset string offsets in /Applications/MAMP/htdocs/
lessons07/app/controllers/students_controller.php on line 39

I'm using the lastest 1.2 beta.



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