$User->Client->Section holds an instance of AkHasmany, which is used for loading associated models into $User->Client->Sections. Keep in mind that it does not hold an Active Record.
If you want eager loading into an association you should try.
Client: has_many sections, users (include => 'filter')
Let me know it it works, otherwise a unit test and a bug report will help us fix the issue
You can create different associations like
var $has_many = array('users',
'sections',
'sections_and_filters' => array('class_name'=>'Section', 'include' => 'filter'),
);
And then include the right association.
You can also try overwriting the default constructor with
function __construct()
{
if(....){
$this->habtm = array(....);
}else{
$this->habtm = array(....);
}
// aditionally you can avoid loading associations by setting
//$this->disableAutomatedAssociationLoading = true;
$attributes = (array)func_get_args();
return $this->init($attributes);
}
But this might not be necessary
now issue #149
1 to 6 of 6