public function getGamerProfileValuesForUser($userId, $gamerprofileId)
{
$gamerprofileValues = $this->finder('AH\GamerProfiles:GamerProfileValue')
->with(['User','GamerProfile'])
->where([
'user_id' => $userId,
'gamerprofile_id' => $gamerprofileId
]
)->fetch();
foreach ($gamerprofileValues AS $gamerprofileValueId => $gamerprofileValue)
{
$gamerprofileValue = $gamerprofileValue->toArray();
}
return $gamerprofileValue;
}