예제 #1
0
파일: Comment.php 프로젝트: tolik505/bl
 public function makeRootIfNotExist()
 {
     $root = $this->getRoot();
     if (!$root) {
         $root = new Comment();
         $root->model_name = $this->model_name;
         $root->model_id = $this->model_id;
         $root->content = 'root';
         $root->name = 'root';
         $root->makeRoot();
     }
     return $root;
 }