コード例 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCenter()
 {
     return $this->hasOne(Acdcenter::className(), ['centerid' => 'centerid']);
 }
コード例 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAcdcenters()
 {
     return $this->hasMany(Acdcenter::className(), ['directorid' => 'personid']);
 }