[TYPO3-mvc] how to add a method to another repository?

Claus Due claus at wildside.dk
Sun Sep 30 17:27:11 CEST 2012


Hi Kay,

> But Anja's solution is clean from the coding point of view :D

I refuse to call the act of extending Extbase models "clean" in any way whatsoever ;) sorry, couldn't resist.

The QOM has a QueryInterface and all methods are marked @api for a reason. It's not intended for exclusive use inside Repositories (although it spawns from there) - if you want an example, check how the Fluid Paginator Widget works.

But of course that's up to each developer; to decide how much time and effort to spend on something that is already provided by an existing API and will decrease performance as well as transparency and compatibility ;)

Academic isn't necessarily smart.


Cheers,
Claus


More information about the TYPO3-project-typo3v4mvc mailing list