Hey, I have the same problem as Brad
http://groups.google.com/group/cake-php/browse_thread/thread/aa331e6a9938f242/779445eead7e9b12?lnk=gst&q=saveall+media#779445eead7e9b12
I am able to edit record with attachment, change attachment, change
user data etc. But I can not create new record in the 'user' model. I
tried different options:
-disabled validator
-check what will be saved in beforeSave()
-check database queries
[11] => Array
(
[query] => START TRANSACTION
[error] =>
[affected] => 0
[numRows] =>
[took] => 0
)
[12] => Array
(
[query] => COMMIT
[error] =>
[affected] => 0
[numRows] =>
[took] => 0
)
that is all..
With every option that I tried my $this->data['User'] will be empty in
the beforeSave(), but it's not in controller. When I'm trying if($this-
>User->saveAll($this->data, 'validate' => 'first')) script always
returns true, but nothing will be saved.
Can anyone please advise with that? At least in which direction we can
do research etc.
Michal
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php