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
3860aaa4b0
Preparation of version 1.4.0
7 years ago
Alban Jubert
689be49f9f
Merge 1.3.2 release
7 years ago
Alban Jubert
f1aea75953
Preparation of version 1.3.2
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
1be081e86b
Updated README
7 years ago
Alban Jubert
94a441c974
Implementation of enhancement #15 : Allow saving extra columns to junction table
7 years ago
Alban Jubert
acbbeceea7
CHANGELOG update
7 years ago
Alban Jubert
d3c369e342
Merge #19
7 years ago
Alban Jubert
90d823458c
Updated changelog
7 years ago
Alban Jubert
49b3d103fa
Merge branch 'execut-fix-bug-with-many-fk'
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
Alban Jubert
77e2a959cc
Merge pull request #20 from DD174/master
...
processModelAsArray by PK
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
2b3d61a946
Prepare for 1.2.0 release.
8 years ago
Alban Jubert
5087c81135
Added changelog
8 years ago
Alban Jubert
ee6a37ec07
Merge branch 'master' of https://github.com/la-haute-societe/yii2-save-relations-behavior
...
# Conflicts:
# src/SaveRelationsBehavior.php
8 years ago
Alban Jubert
0ce89ce91c
Use of ActiveQueryInterface and BaseActiveRecord to ensure larger DB driver compatibility
8 years ago
Alban Jubert
5d7dbcb390
Merge pull request #14 from bookin/patch-1
...
Check Interface instead of Class
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
538ffeb725
Changed image in gitlab-ci to juban/yii2-php-56
8 years ago
Alban Jubert
a8f3c63cba
Remove test report publishing in gitlab ci
8 years ago
Alban Jubert
abf79e18d8
Fix for empty value assignment on HasMany relations
8 years ago
Alban Jubert
4569f62957
Merge branch 'master' of http://gitlab.lahautesociete.int/lahautesociete/yii2-save-relations-behavior
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
eb98b3fb64
Update .gitlab-ci.yml
...
Update .gitlab-ci.yml
Update .gitlab-ci.yml
8 years ago
Alban Jubert
89b319a28c
Add license.
...
Add gitlab ci configuration.
Add single relation assignment test.
8 years ago
Alban Jubert
77d19515f2
Merge pull request #10 from k0R73z/patch-1
...
Fix bug with adding single relation
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
438beb3708
Typo
9 years ago
Alban Jubert
797849e6a3
Add missing ProjectNoTransactions model test class
9 years ago
Alban Jubert
75450aa185
Documentation fix. More unit tests added.
9 years ago
Alban Jubert
05dca3d2c7
Merge pull request #7 from sankam-nikolya/master
...
Update SaveRelationsBehavior.php
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
c306b77316
Minor documentation adjustments
9 years ago