Is it possible the repository to work and keep childs?

I want to make a repository that will work with external service and internal database. Everything should be transparent to its use. Can't decide how to work with child objects. On the one hand, I want to inside in the update was a transaction where everything will be saved. On the other hand, you may want to take the job child objects in other repositories. And again the question arises: is it possible then to work with the child repositories in General, or need of call separately to transfer and save the data first for the main subject, and then for the child? In this case, you will have the transaction to do the same on the outside.

How to do?
June 8th 19 at 17:31

Find more questions by tags PHP