Exemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->department = new Department();
     $this->symptom = new Symptom();
     $this->image = new Image();
 }
Exemplo n.º 2
0
 public function init()
 {
     parent::init();
 }
Exemplo n.º 3
0
 public function init()
 {
     parent::init();
     $this->query = new Query();
 }
Exemplo n.º 4
0
 public function beforeSave($insert)
 {
     $time = time();
     if ($this->isNewRecord) {
         $this->createtime = $time;
         $this->child = 0;
     }
     $this->updatetime = $time;
     return parent::beforeSave($insert);
 }
Exemplo n.º 5
0
 public function init()
 {
     parent::init();
     $this->department = new Department();
     $this->part = new Part();
 }