active-record icon indicating copy to clipboard operation
active-record copied to clipboard

Active Record database abstraction layer

Results 86 active-record issues
Sort by recently updated
recently updated
newest added

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' =>...

type:enhancement

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...

![am](https://github.com/user-attachments/assets/87d09089-4512-4a18-a582-df7fcbcb0885)

status:ready for adoption
type:test