示例#1
0
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return [[['ID_Bank'], 'integer'], [['Account'], 'string', 'max' => 255], [['ID_Bank'], 'exist', 'skipOnError' => true, 'targetClass' => Bank::className(), 'targetAttribute' => ['ID_Bank' => 'ID']]];
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdBank()
 {
     return $this->hasOne(Bank::className(), ['id' => 'IdBank']);
 }
示例#3
0
 public function getBank()
 {
     return $this->hasOne(Bank::className(), ['b_id' => 's_b_id']);
 }