[TYPO3-mvc] Domain question

Nikolas Hagelstein lists at shr-now.de
Wed Jul 22 14:31:20 CEST 2009


Hi,

 

I am looking for an elegant solution for the following scenario:

I got a domain model entity called user.

The entity's properties are change from time to time by various controllers.

 

Besides updating the local database which is handle transparently by
extbase,

 I need to automatically forward these changes to a another system via
webservice.

 

These are the solutions I am aware of:

 

a.       Introduce a update method to the model and use this method instead
of modifiying  the properties directly

b.      Let the controller inform the webservice after every change.

c.       Your suggestion J

 

Extending the models setter functions is not an option since I need to
forward all changes at once.

 

Any hints?

 

Cheers,

Nikolas



More information about the TYPO3-project-typo3v4mvc mailing list