예제 #1
0
 public function afterFind()
 {
     if (!empty($this->cluster_id)) {
         $this->cluster = ProjectClusters::findOne($this->cluster_id)['cluster'];
     }
     parent::afterFind();
 }
예제 #2
0
 public function afterFind()
 {
     if ($this->getObservers()->exists()) {
         foreach ($this->getObservers()->all() as $observer) {
             $this->observers[$observer->id] = $observer->username;
         }
     }
     parent::afterFind();
 }
예제 #3
0
 public function afterFind()
 {
     $this->entrances = ArrayHelper::map($this->boxtypeEntrances, 'entrance_index', 'entrance_index');
     parent::afterFind();
 }