コード例 #1
0
ファイル: Doors.php プロジェクト: andrewdemial/intMays
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getType0()
 {
     return $this->hasOne(DType::className(), ['id' => 'type']);
 }
コード例 #2
0
ファイル: DFirm.php プロジェクト: andrewdemial/intMays
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTypes()
 {
     return $this->hasMany(DType::className(), ['id' => 'type'])->viaTable('d_firm_d_type', ['firm' => 'id']);
 }