Clear ORM
Search
⌃
K
Welcome to Clear
Introduction
Setup
Model
Defining your model
Associations
belongs_to
has_many
has_many through
has_one
Lifecycle
Batchs operations
Transactions & Save Points
Locks
Querying
The collection object
Writing low-level SQL
Migrations
Manage migrations
Call migration script
Migration CLI
Additional and advanced features
JSONB
Symbol vs String
Enums
BCrypt
Full Text Search
Handling multi-connection
Other resources
API Documentation
Inline documentation
Github repository
Credits
Benchmark
Powered By
GitBook
Comment on page
Associations
Relation describes the interaction between different models. Clear handles 4 type of relation: Belongs to, Has Many, Has Many Through and Has One.
Here are the articles in this section:
belongs_to
has_many
has_many through
has_one
Previous
Converters
Next
belongs_to
Last modified
3yr ago