[TYPO3-mvc] Blog Example and Value Object question

Martin Kutschker masi-no at spam-typo3.org
Mon Dec 28 15:12:40 CET 2009


Franz Koch schrieb:
> Hi Martin,
> Hi Jochen,
> 
>> I currently have the same issue on deciding whether I make my tags
>> entities or value objects. I'm asking this myself, because what if the
>> tags shall be displayed as tag-cloud, what if (to stay with the blog
>> example) the blog posts shall be displayed by a certain tag? Don't the
>> tags itself need to have an identity to resolve the relations to the
>> blog posts then? I only wonder how a "findPostsByTag" method for the
>> postsRepository would work then.
> 
> any suggestions/hints for this? Thanks.

As value objects are stored in the DB as a TCA table they get a uid. So you can write a workaround
with direct DB access (from the code) will be possible.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list