class Athena::ORM::Mapping::OneToManyInverseSide
inherits Athena::ORM::Mapping::InverseSide
#
Mapping for the inverse side of a OneToMany association. OneToMany is always the inverse side; the corresponding ManyToOne owns the FK.
Its #mapped_by names the AORMA::ManyToOne property on the target entity, and is required: building the metadata of an entity raises without it.
Included modules
Athena::ORM::Mapping::OneToMany
Methods#
#index_by : String | ::Nil#
The name of the target's field to index the collection by.
Todo
Recorded, but collections aren't indexed by it yet.
#index_by=(index_by : String | Nil)#
The name of the target's field to index the collection by.
Todo
Recorded, but collections aren't indexed by it yet.