php - Symfony 2 Bundle Responsibilities and Structure -
i confused @ when create new bundle or when create new controller , crud in symfony 2. if have entity has joining tables other entities should in same bundle.
an illustration have user bundle , wanted users able videos in system. there user , video linked in joining table.
before started project have said need create video bundle , user bundle, if both need reference each other should in same bundle?
and if reply should in separate bundles best practice reference them in either of views , controllers?
i'll go packing mutual features in same bundle. it's quite hard understand when start learning symfony 2, know. consider, example, fosuserbundle: defines mutual , reusable code crud operations on users, groups, authentication , on.
as starting point should larn how define relationships abstract classes , interfaces , doctrine inheritance mapping (mapped superclasses useful extending bundle, limitations).
php symfony2
No comments:
Post a Comment