[TYPO3-mvc] need help on implementing MM_match_fields in persistence layer
Franz Koch
typo3.RemoveForMessage at elements-net.de
Thu Jan 7 15:38:38 CET 2010
Hi Martin,
>> I just found out that MM_match_fields are not supported yet, but I
>> really need those for my current project (I have to assign tags to
>> multiple objects/tables).
>>
>> I started having a look at the persistence stuff in extbase, but as you
>> guess it's quite to complex to get a quick overview where to actually
>> start. Be it the DataMapper or the queryFactory or whatever?
>
> Did you check these methods?
>
> Tx_Extbase_Persistence_Mapper_DataMap::setManyToManyRelation()
> Tx_Extbase_Persistence_Mapper_DataMapper::getPreparedQuery()
Thanks for the hints. I'm already struggling with
Tx_Extbase_Persistence_Mapper_DataMapper::getPreparedQuery() and see
what happens as soon as I found out how to concatenate multiple
statements via logicalAnd using the queryObject.
>> Some assistence would be welcome. For now I only need to retrieve the
>> relevant objects correctly - they don't get changed in FE so I don't
>> need real persistence here. Or would you suggest to simply write a
>> service or repository to fetch the tags correctly?
>
> That depends IMHO whether support for MM_match_fields is planned. If no, write custom code. If yes,
> make it work and provide a patch.
well, the doc comments say this is still a TODO, so it's a planned feature.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list