active-record
active-record copied to clipboard
Active Record database abstraction layer
Feature request to add the ability to convert dates columns to instances of DateTime inspired by [laravel].(https://laravel.com/docs/7.x/eloquent-mutators#date-mutators). It would be useful to work with dates column like that: ```php class...
- [x] 1. Rename `BaseActiveRecord` class to `AbstractActiveRecord` - [x] 2. Make `AbstractActiveRecord` class implements only `ActiveRecordInterface` - [x] 3. Move other interfaces to `ActiveRecord` class - [x] 4. Move...
| Q | A | ------------- | --- | Is bugfix? | ✔️ | New feature? | ❌ | Breaks BC? | ✔️❌ (maybe) | Fixed issues | comma-separated list...
### What steps will reproduce the problem? The parameter identical of the method isAttributeChanged in class BaseActiveRecord has no effect when its value is false. ```php /** * Returns a...
Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. Commits 362258a Rector 1.0.0 64d401b Updated Rector to commit 9a44c19598a21aff4b6b38f9a0db3b5ca30337c6 428336c Updated Rector to commit 09398c3d4f07bb6ad664a55b87cab955278a467e d00ebb8 Updated Rector to...
\yii\db\Command has very usefull method "upsert", but ActiceRecord has no same feature. In some situation, when additing full set of attributes in model, for example upon importing data, the typical...
### What steps will reproduce the problem? The method `allPopulate` in `ActiveQuery` will execute `populate ` twice during execution. Is this how it was designed or is it a bug...
- [ ] `ActiveRecordInterface::getOldPrimaryKey(bool $asArray = false)` split to * `getOldPrimaryKey(): mixed` equals to `ActiveRecordInterface::getOldPrimaryKey(false)` * `getOldPrimaryKeys(): array` equals to `ActiveRecordInterface::getOldPrimaryKey(true)` - [ ] `ActiveRecordInterface::getPrimaryKey(bool $asArray = false)` split to...