[TYPO3-mvc] RFC #8244: Changes made to a domain object sitting at a "dirty" property won't get persisted

Jochen Rau jochen.rau at typoplanet.de
Thu Jun 17 15:38:29 CEST 2010


Hi Franz.

On 2010-06-17, Franz Koch <typo3.RemoveForMessage at elements-net.de> wrote:
>> Problem:
>> If the data of a Domain Object is altered, the field of the parent table gets updated but the Domain Object itself not. This is because the Domain Object is only added to the queue if it is new.
>>
>> Solution:
>> The solution is to add it to the queue if the parent property is dirty regardles of its state of the domain object.
>
> doesn't that create some unnecessary overhead with valueObjects? Are 
> those supposed to have relations to other objects, too?
>
> If that's not an issue, +1 on reading.

ValueObjects can have relations to other objects. But these objects must be ValueObjects, too, and can not be Entities. An example would be an address as ValueObject where the thoroughfare name is another ValueObject.

So, no overhead imo.

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list