title: Domain driven design implementation using Symfony and Doctrine
body: <p>I am new to symfony and I have a question related to clean Domain Driven Design Implementation in Symfony using Doctrine</p>
  
  <p>In Zend framework one I had a structure as follows</p>
  
  <p><strong>Model Folder</strong></p>
  
  <p><strong>User (Folder and Table in database)</strong></p>
  
  <p>Row.php (Class name Model_User_Row in folder User)</p>
  
  <p>Rowset.php (Class name Model_User_Rowset in folder User)</p>
  
  <p>Table.php (Class name Model_User_Table in folder User)</p>
  
  <p>Repository.php (Class name Model_User_Repository in folder User)</p>
  
  <p>Service.php (Class name Model_User_Service in folder User)</p>
  
  <p>I wish to create similar structure in Symfony using Doctrine (I know that Doctrine has its own way)</p>
  
  <p>My problem is the doctrine Tool Creates a Entity folder and Repository folder in AppBundle and puts everything in those folders.</p>
  
  <p>My wish is to create in Symfony</p>
  
  <p><strong>AppBundle</strong></p>
  
  <p>Model (Folder)</p>
  
  <p>User (Folder)</p>
  
  <p>User.php //entity in folder User</p>
  
  <p>UserRepository.php // repository in folder User</p>
  
  <p>I tried changing the following code</p>
  
  <pre><code>orm:
      auto_generate_proxy_classes: "%kernel.debug%"
      naming_strategy: doctrine.orm.naming_strategy.underscore
      auto_mapping: false
      mappings:
        person:
          type:      annotation
          dir:       "%kernel.root_dir%/../src/AppBundle/Model/Person"
          prefix:    AppBundle\Model\Person
          alias:     AppBundle
          is_bundle: false
  </code></pre>
  
  <p>and then create new enitities but it did not work</p>
  
  <p>please advise</p>