Ejemplo n.º 1
0
 public function behaviors()
 {
     return CMap::mergeArray(parent::behaviors(), array('tree' => array('class' => 'application.components.activeRecordBehaviors.NestedSetBehavior', 'leftAttribute' => self::LFT, 'rightAttribute' => self::RGT, 'levelAttribute' => self::DEPTH), 'withRelated' => array('class' => 'application.components.activeRecordBehaviors.WithRelatedBehavior')));
 }