[TYPO3-mvc] Saving Aggregate root in Session
Henjo Hoeksma
me at henjohoeksma.nl
Tue Mar 20 23:26:34 CET 2012
Hi Kilian,
from the perspective of domain driven design iteration is nor an
object/entity.
You already state yourself it is session dependent.
Why wouldn't you use a session to save the current state?
Kind regards,
Henjo
Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.
On Tue, Mar 20, 2012 at 10:18, Kilian Hann <khann at fconnection.com> wrote:
> Hi List,
>
> I have a domain model (called 'iteration') which should be transferred
> during a multi step form. The children are proper entities with their own
> repository:
>
> iteration
> |- child1
> |- child2
> |- child3
>
> 'Iteration' doesn't have it's own repository, as it's only needed during a
> user session. The children won't change during the form submission, they
> are readonly.
>
> What would be the appropriate way to do this?
>
> a) saving the 'iteration' as a whole in the session (How can I bypass the
> non-existent repository in that case?)
>
> b) saving the uid's of the children and reinstatiate them when the
> 'iteration' is received from the session in the next step.
>
> Any hints are apreciated
>
> Kilian
> --
> Future Connection AG
> http://fconnection.com
>
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>
More information about the TYPO3-project-typo3v4mvc
mailing list