Commit Graph

24 Commits

Author SHA1 Message Date
Jinzhu 49934ff3bf Call DefaultTableNameHandler for JoinTableHandler's table 2018-02-12 09:43:28 +08:00
Jinzhu 44b9911f51 Refactor self referencing m2m support 2018-02-10 21:21:50 +08:00
Nathan Osman 8e7d807ebf Allow name of column to be customized to support self-referencing many2many fields. 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 ec110657da Refactor based on golint 2016-03-07 17:49:55 +08:00
Jinzhu 3055bad1e8 scope.Fields() return slice of *Field 2016-03-07 14:25:41 +08:00
Jinzhu 822e895d4d Refactor getColumnAsArray 2016-01-15 22:55:37 +08:00
Jinzhu 8d716be896 Fix some go vet/lint reports 2016-01-15 21:16:48 +08:00
Jinzhu e60acad62a include join table name in where conditions to avoid ambiguous column name 2016-01-05 08:05:45 +08:00
Jinzhu d87a960248 Test many to many relation with customized column 2016-01-04 08:26:02 +08:00
Jinzhu 2f9abdcf02 Fix preload many2many problem when no search results, #688 2015-11-16 12:20:00 +08:00
Jinzhu 9982134955 Fix preload many2many with multiple primary keys 2015-08-18 09:19:50 +08:00
Jinzhu 6a6c1bf762 Remove not necessary PreloadWithJoin 2015-08-18 08:05:44 +08:00
Jinzhu f8e2f04562 Some Tweaks for Preload Many2Many, Add tests with inline conditions 2015-08-17 23:09:07 +08:00
kimiby 42c3f39163 m2m preload 2015-08-16 10:10:11 +03:00
Jinzhu a29230c86f multpile foreign keys 2015-07-30 16:23:51 +08:00
Jinzhu 308c96ee4c Add PrimaryFields 2015-06-29 18:04:15 +08:00
Jinzhu 7e587724e8 Remove dummy code used for qor 2015-06-23 11:31:59 +08:00
Jinzhu d75612b86f Update JoinTableHandler API 2015-06-19 11:32:11 +08:00
Jinzhu cad0a42875 Get correct quoted table name 2015-06-18 18:08:52 +08:00
Jinzhu 1eb1ed091f Test ManyToMany relations with multi primary keys 2015-04-10 16:55:53 +08:00
Jay Taylor dcc06e22f7 FoundationDB dialect layer and compatibility updates. 2015-03-24 10:35:19 -07:00
Jinzhu 4b98b145b1 Fix foreign db name in join table for multi primary keys relations 2015-03-20 11:49:16 +08:00
Jinzhu 94a5ebe5b4 Refactor JoinTableHandler 2015-03-20 11:22:14 +08:00