mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix #18637: Mentioned that relation can not be named "relation"
This commit is contained in:
@ -859,6 +859,7 @@ While declaring a relation, you should specify the following information:
|
||||
Active Record directly next to it. You see there that `customer_id` is a property of `Order` and `id` is a property
|
||||
of `Customer`.
|
||||
|
||||
> Warning: Relation name `relation` is reserved. When used it will produce `ArgumentCountError`.
|
||||
|
||||
### Accessing Relational Data <span id="accessing-relational-data"></span>
|
||||
|
||||
|
Reference in New Issue
Block a user