Member -> hasOne Profile -> hasOne Attachment

In the MembersController:

$conditions = array(
        'conditions' => "Member.slug = '${member_slug}'",
        'restrict' => array(
                'Profile(bio, email, display_email, website)' =>
'Attachment(dirname, basename)'
        )
);

Notice (1024): Profile.Attachment is not a valid binding [APP/models/
behaviors/bindable.php, line 465]

(There is an entry in the attachments table for this member's profile,
btw.)

I've tried it a half dozen other ways. I think the biggest problem is
that the Attachments behavior creates a "virtual" model, named
ProfileAttachments. I think Bindable just isn't able to see the
association.

Has anyone gotten these two to play nice together?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to