mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +08:00 
			
		
		
		
	Fix #18637: Mentioned that relation can not be named "relation"
This commit is contained in:
		| @ -844,6 +844,7 @@ class Order extends ActiveRecord | ||||
|   указывается сразу после указания самого класса Active Record. Вы видите, что `customer_id` - это свойство класса | ||||
|   `Order`, а `id` - свойство класса `Customer`. | ||||
|    | ||||
| > Warning: Имя связи `relation` зарезервировано. Его использование приведёт к ошбике `ArgumentCountError`. | ||||
|  | ||||
| ### Доступ к связным данным <span id="accessing-relational-data"></span> | ||||
|  | ||||
|  | ||||
| @ -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
	 Scilef
					Scilef