Instantly share code, notes, and snippets.

@soutaro /posts.yml Secret
Last active Jan 16, 2019

Embed
What would you like to do?
Introducing Phinder, posts
- 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