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
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
57ee9b163e
Example to add or update an related record using an associative array
9 years ago
Alban Jubert
26f2a518cd
Small keywords fix
9 years ago
Alban Jubert
98bce0e229
Description fix
9 years ago
Alban Jubert
fb92d0d7e4
Documentation Fix
9 years ago
Alban Jubert
dcc11984cd
Initial commit
9 years ago