[TYPO3-core] RFC: Feature #2540: t3lib_db add possible of recursive mm queries

ingo schmitt mailinglisten at i-schmitt.de
Sun Dec 30 18:40:24 CET 2007


This is an SVN patch request

Type: Feature

Bugtracker reference:
http://bugs.typo3.org/view.php?id=2540


Branches:
Trunk only

Problem:
Currently the t3lib_db allows M:M queries only to different database 
tables but not to the same table. This is handy, if you are builing tree 
relations like in commerce and other extension with own trees.

Solution:
The attached patch addes a new method to t3lib_db which allows recursive 
queries. This is done by prefixing one of the tables in the query by ft 
and passing the new data to the exiting exec_SELECT_mm_query.
Therfore a change in the DBAL Classes is not needed!

Comments:
The original patch was revied by Michael Stucki, Karsten Dambekalns, 
Thomas Hempel during the T3DD07, but was somhow not commited to trunk.

Greetings from Neukirchen,

Ingo
-- 
Ingo Schmitt                        mailto:is at marketing-factory.de
Marketing Factory Consulting GmbH   http://typo3.marketing-factory.de/
Content Management mit Typo3: Beratung - Schulung - Realisierung
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: class.t3lib_db.php.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071230/f2c67bb3/attachment.txt 


More information about the TYPO3-team-core mailing list