不要怂,就是干,撸起袖子干!

Commit 114970a1 by Jan Aagaard Meier

Merge pull request #3898 from ns3777k/master

[ci skip] 📝 fix mistype
2 parents ea63814b c794162a
Showing with 1 additions and 1 deletions
......@@ -265,7 +265,7 @@ UPDATE comments SET commentable_id = 42, commentable = 'image'
The `getItem` utility function on `Comment` completes the picture - it simply converts the `commentable` string into a call to etiher `getImage` or `getPost`, providing an abstraction over whether a comment belongs to a post or an image.
#### n:m
Continuing with the idea of a polymorphic model, consider a tag table - an item can have multiple tags, and a tag can be related to several item
Continuing with the idea of a polymorphic model, consider a tag table - an item can have multiple tags, and a tag can be related to several items.
For brevity, the example only shows a Post model, but in reality Tag would be related to several other models.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!