#1603: Can't make rootColumnName within NestedSet a reference to id of another
table
--------------------------+-------------------------------------------------
Reporter: dream0r | Owner: jwage
Type: enhancement | Status: new
Priority: minor | Milestone: 1.1.0
Component: Behaviors | Version: 1.0.3
Resolution: | Keywords:
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
--------------------------+-------------------------------------------------
Changes (by jwage):
* milestone: Unknown => 1.1.0
Comment:
You need to set the primary key of the Menu model to match the behavior.
{{{
detect_relations: true
Menu:
columns:
id:
type: integer(4)
primary: true
autoincrement: true
title:
type: string(255)
MenuItem:
actAs:
NestedSet:
hasManyRoots: true
rootColumnName: menu_id
columns:
title:
type: string(255)
menu_id:
}}}
I will change the Searchable behavior in Doctrine 1.1 to default to the
same length as the auto added primary key.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1603#comment:1>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---