-
-
Save soutaro/21c01880c2c489188441b04e06c1d20b to your computer and use it in GitHub Desktop.
Introducing Phinder, posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: com.example.app.posts | |
pattern: "_->hasMany(Post::class)" | |
message: | | |
Use `User::posts()` to retrieve a user's posts and associated records | |
`posts()` includes associated records, so it runs faster. | |
justification: | |
- When you only need only a single kind of records | |
- When you look up records not associated with a user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment