active-record
active-record copied to clipboard
Active Record database abstraction layer
Similar to `IndexBy`, this option will arrange records by a value. For example ```php $userQuery = new ActiveQuery(User::class, $db); $users = $userQuery->arrangeBy('status')->all(); ``` The result is ```php [ 'active' =>...
Avoid `set` and `get` prefixes when declaring method names in the base `ActiveRecord` classes. These prefixes will be used to access values of properties and relations e.g. `getName()`, `setName()` ###...
> @xepozz > What's the reason to rename `attributes` to `properties`? It was discussed that there is confusion between the `$attributes` AR property and PHP's `#[Attribute]`. But it's a good...
