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