Hi there.
I have a bit of an issue.
I am working on creating a post model that handles multiple postmeta
data for easily creating scalable forms.
I have the two models
post:
var $hasMany = array('Meta' =
array('className' = 'Meta',
'foreignKey' = 'post_id',
'order' = 'Meta.id ASC',
'dependent' = true,
'unique' = true,
'recursive' = '1'
)
);
I find it works fine when i create a new post with any amount of meta
fields set in the form.
When i delete the post it deletes all the meta information which is
perfect.
However when I update the information, instead of making use of the
previous information, it creates and saves new information to the
database...
Where I am going wrong?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---