leandrogehlen
b7b67ebcb3
Fixes error loading `hasMany` relation without referenced key in data
7 years ago
Alban Jubert
ee2e08a352
Cleanup.
7 years ago
Alban Jubert
4ad9a5bb25
Removed transaction handling and rewrite the rollback system.
7 years ago
Alban Jubert
d9a1e76a6a
Only start transaction if needed during the beforeValidate event
7 years ago
Alban Jubert
632b8298ab
More meaningful constants names for relations key name
7 years ago
Alban Jubert
86f293bec3
Fix missing InvalidConfigException import
7 years ago
Alban Jubert
7970a50abb
Changed useFormName property name to relationKeyName and added related constants
...
Updated Changelog
Updated Readme
7 years ago
Leandro Gehlen
0f733519bb
Added `useFormName` property ( #37 )
...
* Added `useFormName` property
7 years ago
Alban Jubert
18ae1c8243
Fix a potential variable overwrite
7 years ago
Leandro Gehlen
cd14cbcd04
Fixes error on update `hasMany` relation with composite key ( #36 )
...
Fixes error on update `hasMany` relation with composite key
7 years ago
Alban Jubert
9f657bdb50
Fix a regression in Has One saving introduced by #33 fix.
7 years ago
Alban Jubert
93821debd2
A better fix for issue #33
7 years ago
Alban Jubert
e6807c7fb1
Fix for issue #33
...
Added the ability to set a relation scenario at runtime using the setRelationScenario method
Added related tests
7 years ago
Alban Jubert
5e2fe7925a
Small refactoring
7 years ago
Alban Jubert
4ef6c6099f
Small refactoring
7 years ago
Alban Jubert
c76e4cf367
- Bug fix for has One relation
...
- Bug fix for SaveRelationTrait
7 years ago
leandrogehlen
38b55eb31e
Fixes `SaveRelationsTrait::load` method
7 years ago
Alban Jubert
08f3ff8bd1
Added ability to delete related record after owner model delete
7 years ago
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
8 years ago
Alban Jubert
30377e1054
Preparing for enhancements #3 , #5 and #15 to be able to set per relation properties
8 years ago