How should i link users with fixed questions and answers in symfony2 doctrine2 classes
===

I have these classes

    class Questioncategory {
    
    one to many
    private $questions
    
    }

--------

 

 

          class Questions{
       many to one
       private $category
      
       one to many
       private $answers
     }

---


    class answers {
    
    many to one
    private questions
    
    }


NOw the scenario is that when i register the user then there are predefined set of questions  like feedback form on the web page which user has to fill. The questions will have different categories like  `personal questions` , `technical questions` etc

1. Now these questions are fixed but these questions are different for different age groups.

2. Although the questions are will be same for same age group but i think i need to first grab the questions from database based on user agegroup and then link it to user table
or is there any other way???

Now my problems

`How to show link in user table i mean`

   

         class user{
     private questions or answers or category
      }

I am confused first

`How to show the questions category wise on the page like`

    personal questions
    
    1What is you age  <input text box>
    2What is your eye color <input text box
    and other catregories

I mean how should i iterate through doctrine `$user->question->getcategory->getQuestions`

and then how to bind the form with answers table
