Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBranches()
 {
     return $this->hasMany(Branch::className(), ['orgn_id' => 'id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBranch()
 {
     return $this->hasOne(Branch::className(), ['id' => 'branch_id']);
 }