1
0
mirror of synced 2025-01-29 19:41:45 +03:00

Fix for coding standards.

This commit is contained in:
Jonathan.Wage 2007-11-08 18:50:20 +00:00
parent 07bacdfe78
commit e33130b80e

View File

@ -45,9 +45,10 @@ class Doctrine_Tree_NestedSet extends Doctrine_Tree implements Doctrine_Tree_Int
{
// set default many root attributes
$options['hasManyRoots'] = isset($options['hasManyRoots']) ? $options['hasManyRoots'] : false;
if ($options['hasManyRoots'])
if ($options['hasManyRoots']) {
$options['rootColumnName'] = isset($options['rootColumnName']) ? $options['rootColumnName'] : 'root_id';
}
parent::__construct($table, $options);
}