I'm trying to do this:
class MyPage extends Page {
...
static $belongs_many_many = array(
'Others' => 'OtherPage'
);
...
function getRedOthers() {
return $this->Others("Colour='Red'");
}
function getBlueOthers() {
return $this->Others("Colour='Blue'");
}
}
but when I use RedOthers and BlueOthers as controls in the same template, they return the same results (decided by whichever comes first in the template).
Is this a bug, or am I missing something?