After you get the record, unset $this->Applicant->id:function copytest($id)
{
$this->Applicant->id = $id;
$this->data = ""
unset($this->data['Applicant']['id']);
unset($this->Applicant->id = $id;);
$this->data['Applicant']['schoolyear_id'] = 16;
$this->Applicant->save($this->data['Applicant']);
}
I didnt test it, but this may help.Brian French [EMAIL PROTECTED] wrote: Thanks for the reply. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- Copying a db record [EMAIL PROTECTED]
- Re: Copying a db record John Zimmerman
- Re: Copying a db record [EMAIL PROTECTED]
- Re: Re: Copying a db record Samuel DeVore
- Re: Copying a db record Brian French
- Re: Copying a db record [EMAIL PROTECTED]
- Re: Copying a db record nate
- Re: Copying a db record [EMAIL PROTECTED]
- Re: Re: Copying a db recor... Samuel DeVore
- Re: Copying a db record [EMAIL PROTECTED]
- Re: Copying a db record Brian French
- Re: Copying a db record [EMAIL PROTECTED]
- Re: Copying a db record Sohei Okamoto
- Re: Copying a db record [EMAIL PROTECTED]
- Re: Copying a db record [EMAIL PROTECTED]
