l3pp4rd/DoctrineExtensions — Issue #187: [Tree] Inheritance Mapping 
Author: mazen
Created: 2011-11-01 18:50:06+00:00
State: open

I have a weird issue with inheritance mapping where the tree does not get stored correctly in the database (lefts and rights are off).

this is the data that is actually generated after populating with some data.

```
+----+-----------+-----+-----+------+-----+-------+-----------------------+-------+
| id | parent_id | lft | rgt | root | lvl | dtype | caption | width |
+----+-----------+-----+-----+------+-----+-------+-----------------------+-------+
| 1 | NULL | 1 | 4 | 1 | 0 | grid | Homepage default grid | NULL |
| 2 | 4 | 1 | 2 | 0 | 1 | col | NULL | 50% |
| 3 | 4 | 0 | 0 | 0 | 1 | col | NULL | 50% |
| 4 | 1 | 2 | 3 | 1 | 1 | row | NULL | NULL |
+----+-----------+-----+-----+------+-----+-------+-----------------------+-------+
```

So the row persists fine but the cols are not, though the parent_id reference is correct.

entity definitions can be found at https://gist.github.com/1331506

Can anyone spot what is going wrong here? This is happening with 2.1.x as well as the master branches.