I have 2 db's( papers & evaluators)
papers are related to evaluator only if both has same number in field "group"(because there are 4 evaluators for each paper)
Model1->paper
paper.name
paper.groupid
paper.rate
Model2->evaluator
evaluator.loginname
evaluator.group
based on login in private area i can get the condition on model2, $login is printed without problems
$user =& JFactory::getUser();
$login=$user->username;
pr(" papers assigned to : ".$login);
return array('loginname' =>$login);
?>
I asume I must define as foreign key "group" because is common relationship
also i set in fields to be retrieved "group"(not sure if necessary)
the issue comes on Model 1, I try to get the papers that are asigned to group "X"
<?php
$group=$row['evaluator']['group'];
pr("Group is".$group);
return array('grupoid' =>$group);
?>
I couldn't get print any value of $group, i don't know how to get it