abstract class Athena::ORM::Mapping::InverseSide
inherits Athena::ORM::Mapping::Association
#
Base class for the side of a bidirectional association whose mapping points at the owning side via mapped_by.
The owning side is where the foreign key (or join-table reference) lives; the inverse side is read-only with respect to the relationship.
A AORMA::OneToMany association is always the inverse side, as is a AORMA::OneToOne or AORMA::ManyToMany association with mapped_by.
Changes made only to the inverse side aren't persisted, so keep both sides in sync, or at least update the owning side.
Direct known subclasses
Athena::ORM::Mapping::ManyToManyInverseSide
Athena::ORM::Mapping::OneToManyInverseSide
Athena::ORM::Mapping::ToOneInverseSide
Methods#
#mapped_by : String#
The name of the field on the owning side that completes the bidirectional association.
#mapped_by=(mapped_by : String)#
The name of the field on the owning side that completes the bidirectional association.