Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
granite
v0.23.3
Top Level Namespace
Granite
Adapter
Base
Schema
Mysql
Schema
Pg
Schema
Sqlite
Schema
AssociationCollection
Associations
Base
Callbacks
Abort
Collection
Column
Columns
ClassMethods
SupportedArrayTypes
Type
ConnectionManagement
Connections
ConversionError
Converters
Enum
Json
PgNumeric
Uuid
Error
Integrators
Migrator
ClassMethods
Migrator
ModelArgs
Query
Assembler
Base
Mysql
Pg
Sqlite
Builder
DbType
Sort
BuilderMethods
Executor
List
MultiValue
Shared
Value
Querying
ClassMethods
NotFound
RecordNotDestroyed
RecordNotSaved
Relationship
Select
Container
Settings
Table
Tables
ClassMethods
Transactions
ClassMethods
Type
ValidationHelpers
Validators
Built with Crystal 1.10.0
2023-10-29 04:22:59 UTC
module
Granite::
Associations
Direct including types
Granite::Base
Defined in:
granite/associations.cr
Macro Summary
belongs_to
(model, **options)
has_many
(model, **options)
has_one
(model, **options)
Macro Detail
macro
belongs_to
(model, **options)
#
[
View source
]
macro
has_many
(model, **options)
#
[
View source
]
macro
has_one
(model, **options)
#
[
View source
]