kimiby
42c3f39163
m2m preload
2015-08-16 10:10:11 +03:00
Jinzhu
f50956cfef
Fix test TestSelectWithCreate
2015-07-30 22:36:04 +08:00
Jinzhu
4e8272cf9d
Fix compile error for preload
2015-07-30 18:19:49 +08:00
Joakim Lundborg
14dde4b9f2
Correct error message
2015-06-11 16:14:36 +02:00
crystalin
f05a6b3794
Support for preload of Struct Ptr
...
This fixes the issue when preloading .Preload("Project.Repositories").Find(&[]User{})
with
type User struct {
Project *Project
}
type Project struct {
Repositories []Repository
}
type Repository struct {
...
}
2015-06-05 12:54:52 +02:00
Jinzhu
7693c093a9
Refactor Preload
2015-04-22 15:36:10 +08:00
bom_d_van
9e9367e815
refactor preload and its tests
2015-04-21 16:52:18 +08:00
bom_d_van
6d58dc9f4e
support nested preloading
2015-04-21 16:52:18 +08:00
Jinzhu
0e2cd4475f
Only load Fields when defined preload
2015-04-16 18:42:35 +08:00
Jinzhu
6e5d46bf37
Refactor Search API
2015-03-12 14:47:07 +08:00
Jinzhu
49454839bd
Support Multi primary keys
2015-03-11 11:28:30 +08:00
Jinzhu
b3d6025365
Fix preload error when result is empty
2015-03-02 10:52:18 +08:00
Jinzhu
5586d04999
Uniq foreign key for Preload
2015-02-24 15:50:02 +08:00
Jinzhu
0b32041135
Review and Refactor
2015-02-17 22:55:14 +08:00
Jinzhu
3a73206010
Refactor model struct
2015-02-16 16:35:26 +08:00
Jinzhu
b3b87d9c45
Fix Preload belongs to relations has same records
2015-02-12 13:50:16 +08:00
Jinzhu
24e0de116a
Add inline condition support for Preload
2015-02-11 19:08:42 +08:00
Jinzhu
aac52fdcf8
Fix Preload with slice of pointer
2015-02-11 17:58:19 +08:00
Jinzhu
f97e2c088e
Make Preload works with has_one, has_many, belongs_to relations
2015-02-11 17:17:27 +08:00
Jinzhu
dd635a17c2
Preload belongs_to, has_one, has_many relations
2015-02-11 13:43:53 +08:00