Can you post the SQL queries generated by Cake?
Sounds really weird.
On 18 May 2008, at 16:04, oana wrote:
>
> Hi Keith,
>
> Your summary is very accurate, that is exactly what's happening.
>
> This is how i select the conversations for an user, in the user
> controller:
>
> $this->set('conversations',$this->paginate('ConversationsUser',
> array('User.id' => $userId)));
>
> Thank you for replying.
>
>
>
> On May 18, 6:48 am, Keith <[EMAIL PROTECTED]> wrote:
>> Hi Oana,
>>
>> Can you post some code?
>>
>> What do you mean by "extract?"
>>
>> It sounds like you've got your HABTM working properly, but when you
>> try to create a view that shows conversations for a specific user the
>> join table rows associated with that user are deleted. Is this an
>> accurate summary of your problem?
>>
>> On May 17, 4:34 am, oana <[EMAIL PROTECTED]> wrote:
>>
>>> I know it has been posted a lor about this topic...but i can't
>>> figure
>>> it out. Maybe someone with some experience in cake may help me,
>>> because i am a newbie.
>>
>>> I have 2 classes, Users and Conversations, between them it's habtm
>>> relationship, and i have the join table ConversationsUser.
>>
>>> In the Users controller i have a function which extracts all the
>>> conversations of an user give by it's id. Whenever i try to do this,
>>> the fields in the join table are deleted.
>>
>>> Can anyone please help me? I didn't post this right away, i tried a
>>> lot to make it work, but i think it's something big i am missing.
>>
>>> Thanks,
>>> Oana
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---