Exemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStaff()
 {
     return $this->hasMany(\app\modules\sakila\models\Staff::className(), ['address_id' => 'address_id']);
 }
Exemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStaff()
 {
     return $this->hasOne(\app\modules\sakila\models\Staff::className(), ['staff_id' => 'staff_id']);
 }