Interface EntityFieldDefinitionOptions

Options for EntityFieldDefinition

interface EntityFieldDefinitionOptions {
    association?: EntityAssociationDefinition<any, any, any, any, any, any>;
    cache?: boolean;
    columnName: string;
}

Properties

association?: EntityAssociationDefinition<any, any, any, any, any, any>

Defines the association behavior for an entity that this column references.

cache?: boolean

Whether or not to cache loaded instances of the entity by this field. The column name is used to derive a cache key for the cache entry. If true, this column must be able uniquely identify the entity.

columnName: string

Column name in the database.