thanks that helped me in the right direction
I had to read the datum into the data array
inside the edit action of the article controller its working with the
following
$this->data = $this->Article->read(null, $id);
$this->data = $this->Articledatum->read(null, $id);
however I thought that the second line (of php code) would be over writing
the data array with the returned by the second read.
also the article datum is be selected via the id of the articledatum entry
no by the article_id which joins the article(meta) to the articledatum
On 17/01/07, georgeL <[EMAIL PROTECTED]> wrote:
updating of the related fields is done by:
1. in you form name the fields like the related model
input('Article/name')
input('Topic/name')
2. when this is submitted you must save the depending model data too
$this->Article->save($this->data)
$this->Topic->save($this->data)
if you want to check what is comming in and out you can alway use:
debug($this->data)
also try debug($this) to get everything there is.
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---