Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCashdrawers()
 {
     return $this->hasMany(Cashdrawer::className(), ['id_branch' => 'id_branch']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdCashdrawer()
 {
     return $this->hasOne(Cashdrawer::className(), ['id_cashdrawer' => 'id_cashdrawer']);
 }