[TYPO3-mvc] DAM and relation RELATION_HAS_ONE for single object relation

Franz Koch typo3.RemoveForMessage at elements-net.de
Fri May 28 01:58:44 CEST 2010


Hey,

> Everything is working (extbase is resolving the relations and fetching
> objects), except of the fact that I get the wrong images (always the
> image with UID 1). Is there some annotation I can set in my model
> besides of turning it into a ObjectStorage (which is no option for me as
> it's totally awkward to access the single image in fluid then)?
>
> If I start switching the relation type to RELATION_HAS_MANY I get an
> TYPO3 exception that the object type could not be determined, because of
> the missing 'elementType' in my annotation. So does anybody see a chance
> on how to fix those special cases?

I tried some further things and did succeed somehow - but what I did now 
is a really ugly hack. I think what we need to solve the issue properly 
is a new relation type RELATION_BELONGS_TO_MANY, which is indicating the 
the relation results in 1 single object (thus has no 'elementType' and 
just a 'propertyType'), but is stored in a MM relation. Do you guys 
think this is a reasonable solution?

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list