do you use $Model->set() or ?
--
Lep pozdrav, Tilen Majerle
2011/12/28 Constantin.FF <constantin.ff@gmail.com>
I am using Behavior which beforeSave sets the title of the post. I am
using this for attachments to set title, slug, create thumbs and so
on ..
With the testing till now these are the results: Set title inside:
-Behavior beforeSave - does not save inside i18n table
-Model bofereSave - does not save inside i18n table
-Controller before $this->Attachment->save($this->data) - Working!
What are my options to use only a Behavior to set the title? I guess
that this error appears because storing entry inside i18n table
happens before setting the title in the Behavior. So first it tries to
save record inside i18n, but still there is no title and it does not
save anything. After that saving applying the Behavior, which sets the
title and saves the record in the 'attachments' table.
How to debug and see, what is the data before inserting in the model
and i18n tables? Any ideas for the error?
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment