85 Commits

Author SHA1 Message Date
Jinzhu
0efe6d8343 Merge pull request #1402 from huwenchao/patch-1
fix a wrong sql
2017-03-27 23:03:21 +08:00
Wenchao Hu
6f9aafa106 fix a wrong sql
`time.Now` is a function, it should be `time.Now()`
2017-03-27 22:35:58 +08:00
Jinzhu
93834ebf2e Update 2017-03-23 00:16:10 +08:00
Jinzhu
d2bdb9bc36 Update 2017-03-17 17:21:06 +08:00
Grégoire Molveau
7c5ec07522 Add back-reference example to many-to-many doc 2017-03-17 17:20:23 +08:00
Jinzhu
335c5d727c Merge pull request #1326 from JoeFerrucci/patch-1
Update models.md
2017-01-23 10:38:04 +08:00
Joe Ferrucci
4b4b6b8a42 Clarification
Clarify when `UpdatedAt` is updated.
2017-01-22 11:35:34 -08:00
Joe Ferrucci
08c6a5ad0b Update models.md
Incorrect syntax.
2017-01-22 09:04:40 -08:00
Jinzhu
84fe98b1d6 Update doc 2017-01-16 23:35:00 +08:00
Jinzhu
dd88cb9708 Merge pull request #1315 from xcoulon/patch-1
Clarification on `DB.First(...)` method
2017-01-16 23:30:12 +08:00
Xavier Coulon
3bfe600c82 Clarification on DB.First(...) method
Documenting the limitation on the `func (s *DB) First(out interface{}, where ...interface{}) *DB` method where the column name is optional if the primary key is numeric. In other cases, the name of the column must be provided.
2017-01-16 15:50:47 +01:00
Jinzhu
0846f2636a Merge pull request #1294 from mehdy/patch-1
associations.md: updated association fields type
2017-01-13 10:57:10 +08:00
Jinzhu
c23ed8e58b Merge pull request #1305 from nkovacs/patch-2
Fix typo in documentation
2017-01-05 22:24:33 +08:00
Nikola Kovacs
1fec745f54 Fix typo in documentation 2017-01-05 10:37:37 +01:00
Jinzhu
a48d6f4b8e Remove not used files for github pages 2017-01-02 22:14:03 +08:00
Jinzhu
aa47843d25 Fix page building error on github 2017-01-02 22:09:54 +08:00
Jinzhu
5945e2bab2 Fix page building error on github 2017-01-02 22:08:09 +08:00
Jinzhu
7bad00961a Update how to write documents 2017-01-02 22:02:51 +08:00
Jinzhu
5e5a9792ac Update documents 2017-01-02 21:56:33 +08:00
Jinzhu
cb1e720803 Fix link 2017-01-02 20:58:41 +08:00
Jinzhu
317f59e257 Merge pull request #1259 from gabeio/gh-pages
fix link typo
2017-01-02 12:07:17 +08:00
Jinzhu
feb98d78fb Merge pull request #1296 from dunglas/patch-1
Docs: add a missing backtick
2017-01-02 12:06:09 +08:00
Kévin Dunglas
b530757c9f Docs: add a missing backtick 2017-01-01 17:18:39 +01:00
mehdy
15605750d3 associations.md: updated association fields type
AssociationForeignKey must be the same type of ForeignKey
ForeignKey is better to be uint as gorm.Model.ID is uint
2016-12-30 12:06:57 +03:30
Gabriel D
0107b4794e
fix link typo 2016-11-15 01:29:22 -05:00
Jinzhu
9f4975dbe5 Update 2016-10-27 12:37:58 +08:00
Jinzhu
f61fa5c8b4 update 2016-10-27 12:34:42 +08:00
Jinzhu
e9fdbc2c2e Update documents 2016-10-27 12:30:00 +08:00
Jinzhu
8159e8f193 Update 2016-10-24 10:43:41 +08:00
Jinzhu
2685afc4b7 Merge pull request #1237 from mrkplt/patch-1
Change "GROM" to "GORM"
2016-10-23 21:14:50 +08:00
Mark Platt
64327f1fc2 Change "GROM" to "GORM"
That's it. Just a typo.
2016-10-20 22:18:09 -04:00
Jinzhu
cf583c7d56 Merge pull request #1216 from naokij/patch-1
Update associations.md
2016-10-19 10:22:34 +08:00
Jinzhu
644d770f59 Merge pull request #1217 from aderyabin/fix_typo
Fix typo
2016-10-19 10:20:48 +08:00
Andrey Deryabin
1273d39feb
fix typo 2016-10-10 11:59:43 +03:00
Jiang Le
00171b6f97 Update associations.md
Many to many association
should use
```
db.Model(&user).Related(&languages, "Languages") 
```
instead of
```
db.Model(&user).Related(&languages)
```
http://stackoverflow.com/questions/34667199/gorm-many-to-many-select-gives-invalid-association-error
2016-10-10 16:31:00 +08:00
Jinzhu
7fcc575363 Update GORM guides 2016-08-16 16:59:30 +08:00
Jinzhu
902d0a479e Merge pull request #1158 from Niondir/patch-1
Update models.md to document DefaultTableNameHandler
2016-08-16 16:57:26 +08:00
Tobias Kaupat
47700ae2d2 Update models.md
Document DefaultTableNameHandler
2016-08-16 10:48:46 +02:00
Jinzhu
c6379bc24b Update GORM guides 2016-08-16 16:38:53 +08:00
Jinzhu
30ff208d6e Merge pull request #1134 from ovr/patch-1
Fix typos
2016-08-04 20:47:06 +08:00
☃ Dmitry (◕ᴥ◕)
96e1033335 Fix typos 2016-08-01 20:48:08 +09:00
Jinzhu
ba70f12ea6 Merge pull request #1122 from jeffbmartinez/gh-pages-add-close
Add db.Close() examples to documentation
2016-07-20 08:36:16 +09:00
jeff martinez
915f2c5061 Add db.Close() examples to documentation 2016-07-18 14:03:08 -07:00
Jinzhu
711e791bb5 Merge pull request #1101 from mex/patch-1
Fix typo in primary key section of docs
2016-07-05 06:13:55 +08:00
Michael Storgaard
fa52e545f7 Fix typo in primary key section of docs 2016-07-01 16:46:56 +02:00
Jinzhu
a2291efe5b update documents 2016-05-04 21:26:42 +08:00
Jinzhu
7707d480dd Merge pull request #991 from randomandy/patch-1
Added valid postgres connect string with host and password
2016-05-04 20:58:18 +08:00
Andy Ruland
a11f3de60d Added valid postgres connect string with host and password 2016-05-04 12:25:08 +04:00
Jinzhu
c627e49002 Merge pull request #978 from ezra-g/patch-1
Consider migrating schema in Getting Started Guide
2016-05-02 19:37:43 +08:00
Ezra Gildesgame
df2e5ce0bd Create initial schema. 2016-04-29 12:00:44 -04:00