This commit is contained in:
parent
6fd1080729
commit
be1f8391ea
@ -144,6 +144,10 @@ class Phonenumber extends Doctrine_Record
|
|||||||
|
|
||||||
+++ Tree structure
|
+++ 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">
|
<code type="php">
|
||||||
class Task extends Doctrine_Record
|
class Task extends Doctrine_Record
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user