[TYPO3-mvc] Persistence of value objects

Henjo Hoeksma me at henjohoeksma.nl
Thu Apr 19 09:33:16 CEST 2012


Hi Dennis,

it seems to me it will only be stable when you check in the BE if an object
is unique in it's values. So for a simple input this will be no problem.
When you have a value object with more properties, you will have to write a
check for the BE to make sure the combination of properties only exists
once.
When that is in place, you can freely work with both BE and FE on value
objects.

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 Wed, Apr 18, 2012 at 15:48, Dennis Ahrens
<dennis.ahrens at googlemail.com>wrote:

> Hi Daniel,
>
>
> On 18.04.2012 15:15, Daniel Schöne wrote:
>
>> afaik value objects are not implemented yet, neither in extbase nor in
>> flow3.
>>
>
> I did a grep to verify this, because i can't really believe. I found some
> code regarding this in the Backend.php [1] and the Typo3StorageBackend.php
> [2].
>
> I digged a bit deeper and found a ticket on forge [3], that is related to
> this topic.
>
> Tested a bit with my model and wrote a scheduler task, that inserts the
> objects. When using the extbase persistence layer everything works fine.
> But TCEMain does not know about the value objects.
>
> Does anybody uses value objects in extbase and allows editing from both
> sides - TYPO3 backend (TCEMain) and extbase based in FE/BE? I guess there
> might be a few side effects...
>
> regards
> Dennis
>
> [1] http://git.typo3.org/TYPO3v4/**CoreProjects/MVC/extbase.git?**
> a=blob;f=Classes/Persistence/**Backend.php;h=**
> efdf029b9b4a5372fadbe07fb71464**0c8a0ef39d;hb=HEAD#l583<http://git.typo3.org/TYPO3v4/CoreProjects/MVC/extbase.git?a=blob;f=Classes/Persistence/Backend.php;h=efdf029b9b4a5372fadbe07fb714640c8a0ef39d;hb=HEAD#l583>
> [2] http://git.typo3.org/TYPO3v4/**CoreProjects/MVC/extbase.git?**
> a=blob;f=Classes/Persistence/**Storage/Typo3DbBackend.php;h=**
> e9bef501432931ec9aac37ff0db057**d12b31363f;hb=HEAD#l362<http://git.typo3.org/TYPO3v4/CoreProjects/MVC/extbase.git?a=blob;f=Classes/Persistence/Storage/Typo3DbBackend.php;h=e9bef501432931ec9aac37ff0db057d12b31363f;hb=HEAD#l362>
> [3] http://forge.typo3.org/issues/**12306<http://forge.typo3.org/issues/12306>
>
> ______________________________**_________________
> 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