コード例 #1
0
ファイル: Boxes.php プロジェクト: ThijsBosch/batboxes
 public function afterFind()
 {
     if (!empty($this->cluster_id)) {
         $this->cluster = ProjectClusters::findOne($this->cluster_id)['cluster'];
     }
     parent::afterFind();
 }
コード例 #2
0
ファイル: Visits.php プロジェクト: ThijsBosch/batboxes
 public function afterFind()
 {
     if ($this->getObservers()->exists()) {
         foreach ($this->getObservers()->all() as $observer) {
             $this->observers[$observer->id] = $observer->username;
         }
     }
     parent::afterFind();
 }
コード例 #3
0
ファイル: Boxtypes.php プロジェクト: ThijsBosch/batboxes
 public function afterFind()
 {
     $this->entrances = ArrayHelper::map($this->boxtypeEntrances, 'entrance_index', 'entrance_index');
     parent::afterFind();
 }