title: symfony2 - WI put my Model Classes , I coul not find it
body: <p>I was using CodeIgniter as PHP framework and then I decided to learn SF instead of CI.
  Because CI stopped updating new versions.</p>
  
  <p>I have</p>
  
  <p>-src
    -Post
       -PostBundle
          -PostController
          -CommentController
            ......</p>
  
  <p>And I want use a mode named Post_model.</p>
  
  <p>In Post_model class i want to use these functions ,</p>
  
  <pre><code>class Post_model {
  
     public function LastTenPosts() {
  
        $posts= $this-&gt;getDoctrine()
                -&gt;getRepository('PostPostBundle:Posts') 
                    .................. etc ...........           
  
     }
     public function MostPopulerPosts() {
  
       /*  I want to use doctrine in theese functions  */            
  
     }
     public function MostCommentedPosts() {       
  
     }
  
  }
  </code></pre>
  
  <p>in Model file , I want to use doctrine functions to connect and get data from my db.</p>
  
  <p>where should i put my Post_mode.php file in SF and how can i use doctrine in model. how can i include doctrine functions.</p>
  
  <p>Thanks a lot for helping.</p>