[FLOW3-general] Building Trees with flow/doctrine

Christian Müller christian.mueller at typo3.org
Thu Feb 7 08:56:40 CET 2013


Hi Aike,


On 06.02.13 13:34, Aike Terjung wrote:
> This sounds intresting, but with a short look into the package i cant
> find any documentation to start from.  Also the CR is not implementing
> a real tree structure, right? I seems to me the the Tree strukture is
> only build on path strings?
Well it is a real tree structure loosely based on the JCR (Java Content
Repository) specification. From the database perspective you might be
missing the parent and child fields and you shouldn't try to add them.
Just use the "Node" model everywhere and not extend it. It has a "type"
property which defines what kind of node it is. You would mostly deal
with API inside a node. So you get the root of your tree from the
repository and from there find the nodes you need either by path query
or by traversing via methods like getChildren(). But this is not the
"typical" tree structure someone would build in a relational database.
If you are interested in using it, I can give you some pointers for sure.

But if you want to work with extending classes indeed the information
was in the thread before. If you need anything more, just come back.

Cheers,
Christian




More information about the FLOW3-general mailing list