Hey, I have a company entity with a one to many association to its opening hour entities. Now i want to receive the opening hours of a company ordered by weekday. Is it ok to write a method called findOpeningHours(Company $company) in the company repository or should it be a method called findAllByCompany(Company $company) in the opening hour repository?
In case of using the opening hour repository I use a service layer in which i inject the different repository instances. So in my CompanyService i have a method called getOpeningHours(Company $company) which uses the opening hour repository to receive them. So i would have to inject all the repositories for the different associations of the company to my service. That could be a lot of :) So would it be the best way to handle all these associations within the company repository or is there a problem which i can't see there yet? Thanks in advance Dominik -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
