[TYPO3-mvc] need help on implementing MM_match_fields in persistence layer

Martin Kutschker masi-no at spam-typo3.org
Thu Jan 7 15:31:24 CET 2010


Franz Koch schrieb:
> Hi guys,
> 
> 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()

> 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.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list