Hi,
The sfPropelActAsNestedSetBehaviorPlugin forces to refer scope field to
some field in table. In my case I do not want to refer scope to any
field and still want to store multiple trees. Is there a way not to
define scope while enabling the behavior for Propel model of category table?
If I try to enable the behavior for Propel model in my class as follows:
-- code starts here --
<?php
// lib/model/Categories.php
class Categories
{
}
$columns_map = array('left' => CategoriesPeer::TREE_LEFT,
'right' => CategoriesPeer::TREE_RIGHT,
'parent' => CategoriesPeer::TREE_PARENT,
'scope' => '');
sfPropelBehavior::add('Categories', array('actasnestedset' =>
array('columns' => $columns_map)));
//-- code ends here --
I get Propel Exception:
'' could not be found in the field names of type 'colName'.
How can I not map scope in columns_map array and still get the plugin to
work as intended?
Regards,
Sameer Ingole.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---