I have used the Profile2 module (D7) and created some custom fields for my users. One of those fields (for example) is "field_company" with the label "Company."

Now I am using a computed field (Company) on a content type (Games). When user creates a Game, I want my computed field Company to be computed/populated automatically, based on the "field_company" field I have set in my profile2. 

I am trying to find how to get that information. This is as far I got, so far, but it doesn't work. 

$entity_field[0]['value'] = "";
$name=$profile2-&gt;field_onoma[LANGUAGE_NONE][0]['value']; 
$entity_field[0]['value'] = $name;



Question: Can we put hash tables inside a hash table?
Answer: The Guava Framework supports such called Mutlimaps oder Multisets. Check this out: https://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained