1
0
mirror of synced 2025-02-20 14:13:15 +03:00
This commit is contained in:
zYne 2007-09-23 16:25:47 +00:00
parent 6fd1080729
commit be1f8391ea

View File

@ -144,6 +144,10 @@ class Phonenumber extends Doctrine_Record
+++ Tree structure
A tree structure is a self-referencing foreign key relation. The following definition is also called Adjacency List implementation in terms of hierarchical data concepts.
However this mainly just serves as an example how the self-referencing can be done. The definition above is rarely a good way of expressing hierarchical data, hence you should take a look at the Hierachical data chapter for how to set up efficient parent/child relations.
<code type="php">
class Task extends Doctrine_Record
{