コード例 #1
0
ファイル: PerintahKerja.php プロジェクト: hendri30/OpenPrint
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPr()
 {
     return $this->hasOne(Pr::className(), ['id' => 'pr_id']);
 }
コード例 #2
0
ファイル: ResPartner.php プロジェクト: hendri30/OpenPrint
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPrs()
 {
     return $this->hasMany(Pr::className(), ['customer_id' => 'id']);
 }