示例#1
0
 /**
  * Attemps to set value of <code>$nested_categories</code> property
  * @param Db object <code>$db</code>
  */
 public function nested_categories(Db $db)
 {
     if (isset($this->id)) {
         $this->nested_categories = NestedCategory::find($db, ['name', 'id', 'parent_id', 'gauche', 'droite'], "user_id = {$this->id}");
     }
 }