Exemplo n.º 1
0
 public function getClusters()
 {
     return $this->hasMany(ProjectClusters::className(), ['project_id' => 'id']);
 }
Exemplo n.º 2
0
 public function getCluster()
 {
     return $this->hasOne(ProjectClusters::className(), ['id' => 'cluster_id']);
 }