used for self-referential relationships, indicates the column or
list of columns that form the "remote side" of the relationship.
+ :param query_class:
+ a :class:`.Query` subclass that will be used as the base of the
+ "appender query" returned by a "dynamic" relationship, that
+ is, a relationship that specifies ``lazy="dynamic"`` or was
+ otherwise constructed using the :func:`.orm.dynamic_loader`
+ function.
+
:param secondaryjoin:
a ColumnElement (i.e. WHERE criterion) that will be used as the join of
an association table to the child object. By default, this value is
ComparableProperty,ConcreteInheritedProperty
class ColumnProperty(StrategizedProperty):
- """Describes an object attribute that corresponds to a table column."""
+ """Describes an object attribute that corresponds to a table column.
+
+ Public constructor is the :func:`.orm.column_property` function.
+
+ """
def __init__(self, *columns, **kwargs):
"""Construct a ColumnProperty.
+ Note the public constructor is the :func:`.orm.column_property` function.
+
:param \*columns: The list of `columns` describes a single
object property. If there are multiple tables joined
together for the mapper, this list represents the equivalent
class RelationshipProperty(StrategizedProperty):
"""Describes an object property that holds a single item or list
of items that correspond to a related database table.
+
+ Public constructor is the :func:`.orm.relationship` function.
+
"""
def __init__(self, argument,