Sets the populated value as well as the foreign key for saving in the DB.
Returns true if other's primary key is equal to the foreign key stored in this ModelRef instance. Does not check any other fields. Does not require this ModelRef to be populated.
The actual data stored in the DB field. Can be manipulated manually to perform special operations not supported otherwise.
DORM field type representing a referenced model through a foreign key in SQL.
The actual data stored in the DB as foreign key is what's stored in the foreignKey member. The populated property is simply a cache member for supporting proactively fetched joined data from the database. Trying to access the populated data without having it populated will result in a program crash through assert(false).