Hi Alexandre and welcome to the forum!
You can perform a simple check with
if($Account->winner->getModelName() == 'Winner'){
// winner holds a Winner model
}else{
// winner holds an AkAssociatedActiveRecord instance
}
Regards,
Bermi
1 to 3 of 3