[TYPO3-mvc] RFC #11230: Allow multiple repositories per model class and add unit tests for the persistence manager

Marc Bastian Heinrichs typo3 at mbh-web.de
Tue Jan 18 21:22:17 CET 2011


Hi,

> Problem:
> 
> 1. Currently, it is not possible to have more than one repository class
> (e.g. a DB repository and a web service repository) for the same model
> class because PersistenceManager::persistAll checks for the existence of
> a name-based repository class.
> 
> 2. The persistence manager has no unit tests for persistAll.
> 
> 
> Solution:
> 
> 1. When checking for aggregate root objects for the reconstituted models
> from the session, the persistence manager also needs to take the
> repositories into account which it already knows about.

+1 on reading for the changes on the persistence_Manager class


Would be great to have this in 1.3.0 RC1.



Regards
Marc Bastian


More information about the TYPO3-project-typo3v4mvc mailing list