Hi,
What I'd like to do is have to different relationships between the same objects. For example, a user can have two relationships to a page, favorite and/or superfavorite.
I have it set up as follows:
SomePage.php
static $belongs_many_many = array(
'Superfavorite'=>'User',
'Favorites'=>'User'
);
User.php
static $many_many = array(
'Superfavorite' => 'SomePage',
'Favorites' => 'SomePage'
);
When I call it from the users end to check the relationship or add/remove, it works just fine, I can do:
$user->Superfavorite()->getIdList();
or
$user->Favorites()->getIdList();
and get the expected response.
But when I do it from the Page end (e.g. $somepage->Favorites()->getIdList();), it only ever gives me the results from the table that shows up first in the arrays in SomePage.php and User.php.
Is it a bug or is there another way I should be doing this?
Thanks!