/** * @return \yii\db\ActiveQuery */ public function getDealerSecurities() { return $this->hasOne(DealerSecurity::className(), ['dealer' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getSecurity0() { return $this->hasOne(DealerSecurity::className(), ['id' => 'security']); }