#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:  Unknown
Component:  Behaviors              |     Version:  1.0.3  
 Keywords:                         |    Has_test:  0      
 Mystatus:  Pending Core Response  |   Has_patch:  0      
-----------------------------------+----------------------------------------
 I would like to use a NestedSet table together with another table. I tried
 to create a reference on menu_id (the rootColumnName) to the Menu table.
 This table allows me to save different trees as different 'menus'. YAML:

 ----

 {{{
 detect_relations: true

 Menu:
   columns:
     title:
       type: string(255)
 MenuItem:
   actAs:
     NestedSet:
       hasManyRoots: true
       rootColumnName: menu_id
   columns:
     title:
       type: string(255)
     menu_id:
 }}}

 ----

 Above fails because NestedSet template creates a int root column with 4
 bytes size instead of 8 bytes. The columns don't match cause of their
 length.

 '''Solution: let the nestedset template create a root column with a 8
 bytes size.'''

-- 
Ticket URL: <http://trac.phpdoctrine.org/ticket/1603>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to