Alban Jubert
953e976e4b
Refactoring
7 years ago
Alban Jubert
56bd8341be
Small refactoring
7 years ago
Alban Jubert
6c96cbcc6a
Small refactoring
7 years ago
Alban Jubert
f13e3647b1
Small refactoring
7 years ago
Alban Jubert
928dfbf8da
Small refactoring
7 years ago
Alban Jubert
98923ad434
Small refactoring
7 years ago
Alban Jubert
0250861124
More refactoring
7 years ago
Alban Jubert
b9e6ddf00c
More refactoring
7 years ago
Alban Jubert
aef5f41a2e
Refactoring
7 years ago
Alban Jubert
279fdf0cdd
Refactoring
7 years ago
Alban Jubert
3075d5e3d0
Refactoring
7 years ago
Alban Jubert
7fe533967b
Refactoring
7 years ago
Alban Jubert
15a82794b5
Updated yii2 requirements to 2.0.14 or later
...
Some refactoring
7 years ago
Alban Jubert
4bc4413615
Updated yii2 requirements to 2.0.14 or later
...
Some refactoring
7 years ago
Alban Jubert
264731f1b4
Prepare for 1.4.1 release
7 years ago
Alban Jubert
2acfceb8fa
Fix for Yii 2.0.14 compatibility. Has many relations were not saved. ( #25 )
7 years ago
Alban Jubert
4085d4d854
Fix for HasOne update issue
7 years ago
Alban Jubert
b74af4153d
Better support for hasOne relations saving ( #22 and #23 )
7 years ago
Alban Jubert
1fb2da90dd
Fix to handle errors that occur during nested models saving ( #23 )
7 years ago
Alban Jubert
683cfc39a5
Fix wrong yii\db\Exception namespace
7 years ago
Alban Jubert
3409c652b3
Fix for transaction being triggered multiple times for nested relations and detection of the transaction support for the ActiveRecord being used
7 years ago
Alban Jubert
f9d4b6410b
Fix for issue #22 : another attempt based on @mythicallage suggestion
7 years ago
Alban Jubert
a34b436548
Fix for issue #22 : when a has one relation is involved and the related models are linked using there primary key, the owner attribute should not be updated in order to pass the validation
...
Added test cases for #22 issue
7 years ago
Alban Jubert
94a441c974
Implementation of enhancement #15 : Allow saving extra columns to junction table
7 years ago
Alban Jubert
d3c369e342
Merge #19
7 years ago
eXeCUT
7025ea4bf4
Fixed search bug with missed key of composite fks
7 years ago
Alban Jubert
8f82fab375
Prepare for 1.3.0 release.
7 years ago
Alban Jubert
96c153f110
* Small refactoring.
...
* Changed the way exceptions are thrown and handled during afterSave event (add error to relation attribute of the owner model, forced rollback if relevant)
7 years ago
Alban Jubert
4e0ec16f6d
Enh #3 : Added the abilty to specify the validation scenario for related records
...
Exception is now thrown (with a transaction rollback when relevant) in case a related record could not be saved during afterSave event
7 years ago
DD174
238308f9c6
processModelAsArray by PK
7 years ago
Alban Jubert
bac425e927
Enh #17 : Added a warning log in saveRelatedRecords method in case of exception
7 years ago
Alban Jubert
30377e1054
Preparing for enhancements #3 , #5 and #15 to be able to set per relation properties
7 years ago
Alban Jubert
09a1043763
Class refactoring
8 years ago
Alban Jubert
5087c81135
Added changelog
8 years ago
Alban Jubert
0ce89ce91c
Use of ActiveQueryInterface and BaseActiveRecord to ensure larger DB driver compatibility
8 years ago
Anton M
b1fe72782f
Check Interface instead of Class
...
Only pure Active Record API is used so it should work with any DB driver
8 years ago
Alban Jubert
73fc64d24e
Fixed: Issue #13
8 years ago
Alban Jubert
abf79e18d8
Fix for empty value assignment on HasMany relations
8 years ago
Alban Jubert
49cae2c76b
Fix for issue #12
8 years ago
Alban Jubert
e1dfd78708
Fix for issue #12
8 years ago
Maxim
1e5d7f84ec
Fix bug with adding single relation
...
It seems to relation with has many type would not be added if code looks like this `$model->relationName = 1` or `$model->relationName = $some model`
8 years ago
Alban Jubert
75450aa185
Documentation fix. More unit tests added.
9 years ago
sankam-nikolya
f1dbcb780a
Update SaveRelationsBehavior.php
9 years ago
Alban Jubert
3b6684eebc
Fix for an issue in which the transaction may not be defined if an error occurs (call to rollback)
9 years ago
Alban Jubert
9735682514
Code style fix
9 years ago
Alban Jubert
6123fa2c9a
Enhancement #4
...
- loadRelations() has been added to be able to load relations data from a data array
- SaveRelationsTrait has been added. It gives the ability to overload the load() method of the owner model to be able to load batch relations
9 years ago
Alban Jubert
c8cd72a7fa
Fix #2 issue: hasMany() relations are correctly saved now
9 years ago
Alban Jubert
b917ed195f
Fix #1 issue: Setting null for a named relation is correctly handled now
9 years ago
Alban Jubert
67a8d06979
Class comments update
9 years ago
Alban Jubert
fb92d0d7e4
Documentation Fix
9 years ago