I have a table on Users
HABTM Solicitations
.
After salver my request, I want to include a new data in table solicitations_users
if($this->request->is('post')) {
$this->Solicitation->save($this->request->data);
// Aqui é meu codigo onde pego a ID do usuário, 6 por exemplo
// Agora eu quero salvar a User ID na "Solicitation" que acabei de criar.
// O codigo abaixo nao funciona
$data = array($this->data['User']['id'] => 6);
$this->Solicitation->save($data);
How can I save a new user_id
on the associations_users
table after $this->save()
associated with solicitation
that I just created ??
Vlw