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