Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOperation0()
 {
     return $this->hasOne(Operation::className(), ['id' => 'operation']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOperations()
 {
     return $this->hasMany(Operation::className(), ['pars' => 'id']);
 }