Alban Jubert
e6807c7fb1
Fix for issue #33
...
Added the ability to set a relation scenario at runtime using the setRelationScenario method
Added related tests
6 years ago
Alban Jubert
c76e4cf367
- Bug fix for has One relation
...
- Bug fix for SaveRelationTrait
6 years ago
Alban Jubert
08f3ff8bd1
Added ability to delete related record after owner model delete
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
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
eXeCUT
7025ea4bf4
Fixed search bug with missed key of composite fks
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
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
Alban Jubert
89b319a28c
Add license.
...
Add gitlab ci configuration.
Add single relation assignment test.
8 years ago
Alban Jubert
75450aa185
Documentation fix. More unit tests added.
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
dcc11984cd
Initial commit
9 years ago