add_has_one


Description:

protected void add_has_one (string property_name, string this_column, string? foreign_column = null) throws EntityError

Add a has_one relationship. A has_one relationship implies that this entity will have a corresponding record in the joined entity. Most SQL implementations would make this an INNER JOIN.

Parameters:

property_name Property name to bind to.
this_column Identifying column name in this entity
foreign_column Identifying column name in the target entity. Will default to the same name in the target.