I am new to symfony and I have a question related to clean Domain Driven Design Implementation in Symfony using Doctrine
In Zend framework one I had a structure as follows
Model Folder
User (Folder and Table in database)
Row.php (Class name Model_User_Row in folder User)
Rowset.php (Class name Model_User_Rowset in folder User)
Table.php (Class name Model_User_Table in folder User)
Repository.php (Class name Model_User_Repository in folder User)
Service.php (Class name Model_User_Service in folder User)
I wish to create similar structure in Symfony using Doctrine (I know that Doctrine has its own way)
My problem is the doctrine Tool Creates a Entity folder and Repository folder in AppBundle and puts everything in those folders.
My wish is to create in Symfony
AppBundle
Model (Folder)
User (Folder)
User.php //entity in folder User
UserRepository.php // repository in folder User
I tried changing the following 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
and then create new enitities but it did not work
please advise