On 13 Lip, 11:39, francky06l <[EMAIL PROTECTED]> wrote:
> Using create and save does not seem to fill up the lft /  rght fields.

No, lft and rght are alright (according to MPTT rules).

These are my tables:

acos:

+----+-----------+-------+-------------+----------------+------+------
+
| id | parent_id | model | foreign_key | alias          | lft  | rght
|
+----+-----------+-------+-------------+----------------+------+------
+
|  1 |      NULL |       |        NULL | controllers    |    1 |    4
|
|  2 |         1 |       |        NULL | someController |    2 |    3
|
+----+-----------+-------+-------------+----------------+------+------
+

aros:

+----+-----------+-------+-------------+--------------+------+------+
| id | parent_id | model | foreign_key | alias        | lft  | rght |
+----+-----------+-------+-------------+--------------+------+------+
|  1 |      NULL |       |        NULL | Users        |    1 |    6 |
|  2 |         1 |       |        NULL | Admin        |    2 |    5 |
|  3 |         2 |       |        NULL | User.Someone |    3 |    4 |
+----+-----------+-------+-------------+--------------+------+------+

aros_acos:

+----+--------+--------+---------+-------+---------+---------+
| id | aro_id | aco_id | _create | _read | _update | _delete |
+----+--------+--------+---------+-------+---------+---------+
|  1 |      1 |      1 |      -1 |    -1 |      -1 |      -1 |
|  2 |      2 |      2 |       1 |     1 |       1 |       1 |
+----+--------+--------+---------+-------+---------+---------+



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to