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

``` public function resetWith() { $this->with = []; if($this->joinWith){ foreach($this->joinWith AS &$join){ $join[1] = false; } unset($join); } return $this; } ``` Также метод, позволяющий просмотреть весь запрос, который будет...

type:enhancement

This is a feature request to add the ability to select the transaction isolation level inside the _transactions()_ method. Currently only the default isolation level is possible when specifying transactions...

type:feature

I don't know if this will break the Active Record pattern so read carefully. Written in php7 for simplier will be changed to php5 if approved. `````` php interface RelationalRecord...

### Additional info https://github.com/yiisoft/yii2/issues/10459

I have several tables that have columns with same name. Let's say `shelf`, `book`, `chapter`, have the same field `name`. I have a page that will show list of `chapter`...

status:under discussion

I don't know how to name it, I just try to explain by example. We have models like this: ```php class User extends ActiveRecord { // ... public function getFiles():...

status:under discussion

Currently relationship definitions in AR are defined as non static getters. In reality an AR class represents a table and an instance of that class represents a record. Relations are...

status:under discussion

Hello, how to use subjects with joining tables? Ex: I have Query which representing sql: ``` SQL SELECT `t`.* FROM `ss_profiles_finances` `t` LEFT JOIN `ss_profiles` `profile` ON `t`.`profile_id` = `profile`.`id`...

it is weird why findAll() method should behave different from all other xxxAll() ```php Table::findAll( [ 'id' => 123, 'check' => true, ['OR', ['userId' => 123], ['userId' => 0]], ]...

I cannot even count how many times I've encountered this issue. I want to call `SomeRecord::findAll($pks)` where `$pks` is an array of primary keys. However, I just want to pass...