Are you sure? It looks ok to me.
How do you check that it does not work? If you try: $this->Member-
>Conjoint->find('count'); that should throw a non-object warning if it
does not work.

Sorry, I can't suggest anything else since it does look like an ok
association.
/Martin


On Aug 31, 1:37 pm, Bidibule <[email protected]> wrote:
> Hi !
>
> I figured an issue and I'm turning around to find the solution..
>
> I have a Member table and each member can have one (only) other member
> as partner.
> So I want to make a self-join with the table Member to say that my
> foreign key itn my member_model 'partner_id' point to another member
> from the same table.
>
> So I'd like to know how I can do that with cake...
>
> Right now I have
>
>         public $hasOne = array('Conjoint' =>
>                                                 array('className' =>'Member',
>                                                         'foreignKey' => 
> 'partner_id'
>
>                                                         )
>         );
>  but it doesn't work
>
> Any idea ?
>
> thanks you !
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to