Jinzhu
|
91a695893c
|
Test Association For BelongsTo
|
2020-05-24 18:33:15 +08:00 |
Jinzhu
|
cbc4a81140
|
Add Count tests
|
2020-05-24 11:35:19 +08:00 |
Jinzhu
|
5ec4fee797
|
Don't preload if foreign keys zero
|
2020-05-23 21:09:03 +08:00 |
Jinzhu
|
72460df1bd
|
Fix associations find
|
2020-05-23 11:57:28 +08:00 |
Jinzhu
|
0f21272c7f
|
Finish implement association support
|
2020-05-20 23:44:50 +08:00 |
Jinzhu
|
20cb57b1ac
|
Add association Delete support
|
2020-05-20 02:03:43 +08:00 |
Jinzhu
|
922a8efc53
|
Generate Query Conds for Relationship
|
2020-05-19 21:50:06 +08:00 |
Jinzhu
|
f999240e10
|
Define association API, add conds to when preloading
|
2020-05-14 20:54:50 +08:00 |
Jinzhu
|
5ccd76f76c
|
Setup Transaction
|
2020-02-23 23:28:59 +08:00 |
Jinzhu
|
b9cce2be6a
|
Add clause, DB API, model definition
|
2020-01-29 19:22:44 +08:00 |
Jinzhu
|
f0d514e330
|
Cleanup
|
2020-01-28 16:22:07 +08:00 |
RikiyaFujii
|
50c61291de
|
add comment (#2163)
* add comment
* typo
|
2018-11-03 21:55:52 +08:00 |
Iskander (Alex) Sharipov
|
742154be9a
|
rewrite if-else chain as switch statement (#2121)
From effective Go: https://golang.org/doc/effective_go.html#switch
> It's therefore possible—and idiomatic—to write an if-else-if-else chain as a switch.
|
2018-10-07 08:49:37 +08:00 |
Jinzhu
|
44b9911f51
|
Refactor self referencing m2m support
|
2018-02-10 21:21:50 +08:00 |
Jinzhu
|
eae7f6be60
|
Fix source type is incorrect error for embedded many to many relationship
|
2017-06-14 17:33:21 +08:00 |
Jinzhu
|
a667ab8427
|
Fix Replace has one/many associations
|
2016-10-20 13:27:26 +08:00 |
Jinzhu
|
afaadc3942
|
Refactor named value support for PolymorphicType
|
2016-10-06 20:33:48 +08:00 |
slockij
|
1413e55339
|
Add named value for PolymorphicType (to replace scope.TableName)
|
2016-09-28 22:44:43 +02:00 |
Björn
|
f159fa3d74
|
association: dont execute Append/Replace/Delete if Error already present
|
2016-05-06 14:10:43 +02:00 |
Jinzhu
|
3055bad1e8
|
scope.Fields() return slice of *Field
|
2016-03-07 14:25:41 +08:00 |
Jinzhu
|
6bd0862811
|
Only update non blank fields that has been changed
|
2016-02-18 23:17:35 +08:00 |
Jinzhu
|
dc23ae63bf
|
Keep refactoring association mode
|
2016-01-16 17:29:39 +08:00 |
Jinzhu
|
67874f9232
|
Keep Refactoring Association Mode
|
2016-01-16 08:23:38 +08:00 |
Jinzhu
|
822e895d4d
|
Refactor getColumnAsArray
|
2016-01-15 22:55:37 +08:00 |
Jinzhu
|
41870191b0
|
Refactor Association Mode
|
2016-01-15 22:14:21 +08:00 |
Jinzhu
|
8d716be896
|
Fix some go vet/lint reports
|
2016-01-15 21:16:48 +08:00 |
Jinzhu
|
341d047aa7
|
Rollback to old Unscoped API
|
2016-01-12 15:27:25 +08:00 |
Jinzhu
|
801a271d07
|
Fix Association Count
|
2016-01-12 12:31:05 +08:00 |
Jinzhu
|
d87a960248
|
Test many to many relation with customized column
|
2016-01-04 08:26:02 +08:00 |
Jinzhu
|
b59eaf526e
|
Set Error to Association when some error happend
|
2016-01-03 17:52:16 +08:00 |
Jinzhu
|
aa55bd3fd2
|
Add more tests for customized foreign keys for many2many relations
|
2016-01-03 17:20:24 +08:00 |
Jinzhu
|
9455215e61
|
Add association tests for composite primary key
|
2015-12-31 11:17:10 +08:00 |
Jinzhu
|
934e97b018
|
Don't need NOT IN conditions when there are no primary keys found
|
2015-12-30 15:34:56 +08:00 |
Jinzhu
|
c087e6dcc6
|
Remove unnecessary saving SQL when Append new association
|
2015-12-26 19:49:31 +08:00 |
Jinzhu
|
a563efdd27
|
Update association tests
|
2015-12-26 16:45:53 +08:00 |
Jinzhu
|
4c1f03fee3
|
Don't set foreign key to be null when delete with a wrong relation
|
2015-12-26 16:19:38 +08:00 |
Jinzhu
|
300b74f15f
|
Refactor association Delete
|
2015-12-26 16:06:53 +08:00 |
Jinzhu
|
e65f94b287
|
Fix association Append for polymorphic
|
2015-12-26 15:20:40 +08:00 |
Jinzhu
|
c88960b9b0
|
Add more tests for TestHasOne
|
2015-12-26 14:26:21 +08:00 |
Jinzhu
|
c23185af54
|
Refactor association Delete
|
2015-12-26 00:23:45 +08:00 |
Jinzhu
|
f6ea3afc8d
|
Refactor association Replace
|
2015-12-25 23:30:57 +08:00 |
Jinzhu
|
f13dcd8bc0
|
Refactor association Replace
|
2015-12-25 20:43:51 +08:00 |
Jinzhu
|
93b512be47
|
Refactor association Clear, Replace
|
2015-12-25 19:35:36 +08:00 |
Jinzhu
|
4719ee7b1f
|
Add Replace support for has many associations
|
2015-12-25 19:08:10 +08:00 |
Jinzhu
|
a00fb4db04
|
Add Delete support for has many associations
|
2015-12-25 18:42:26 +08:00 |
Jinzhu
|
affb64b04b
|
Add BelongsTo support for association Clear
|
2015-12-25 17:32:28 +08:00 |
Jinzhu
|
c85f00bcd2
|
Add BelongsTo support for association Delete
|
2015-12-25 17:09:37 +08:00 |
Jinzhu
|
d57867eb46
|
Make Replace support other associations
|
2015-12-25 15:49:41 +08:00 |
Jinzhu
|
0ce635cc67
|
Add Append support for other associations
|
2015-12-25 15:25:37 +08:00 |
Jinzhu
|
58596afda1
|
Replace many2many associations with empty
|
2015-09-30 21:30:58 +08:00 |