Skip to content

Commit

Permalink
Fix a typo in a Japanese doc (#19232)
Browse files Browse the repository at this point in the history
👍🏻
  • Loading branch information
fetus-hina committed Feb 14, 2022
1 parent 9bcc8c8 commit f248d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide-ja/structure-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class User extends ActiveRecord
> Info: 上記の例と後続の例では、モデル・クラスは [[yii\db\ActiveRecord]] を拡張するものとなっています。
というのは、複数のシナリオを使用することは、通常は、[アクティブ・レコード](db-active-record.md) クラスで発生するからです。

`seanarios()` メソッドは、キーがシナリオの名前であり、値が対応する *アクティブな属性* である配列を返します。
`scenarios()` メソッドは、キーがシナリオの名前であり、値が対応する *アクティブな属性* である配列を返します。
アクティブな属性とは、[一括代入](#massive-assignment) することが出来て、[検証](#validation-rules) の対象になる属性です。
上記の例では、`login` シナリオにおいては `username``password` の属性がアクティブであり、
一方、`register` シナリオにおいては、`username``password` に加えて `email` もアクティブです。
Expand Down

0 comments on commit f248d88

Please sign in to comment.