zibri
Preparing search index...
entity/decorators/property.decorator
Property
manyToOne
Function manyToOne
manyToOne
<
T
extends
BaseEntity
,
TJoinKey
extends
string
>
(
metadata
:
ManyToOnePropertyMetadataInput
<
T
,
TJoinKey
>
,
)
:
<
TCurrentEntity
extends
Partial
<
Record
<
TJoinKey
,
any
>
>
>
(
target
:
TCurrentEntity
,
propertyKey
:
string
|
symbol
,
)
=>
void
Defines a many to one property.
Type Parameters
T
extends
BaseEntity
TJoinKey
extends
string
Parameters
metadata
:
ManyToOnePropertyMetadataInput
<
T
,
TJoinKey
>
Additional data to specify the property.
Returns
<
TCurrentEntity
extends
Partial
<
Record
<
TJoinKey
,
any
>
>
>
(
target
:
TCurrentEntity
,
propertyKey
:
string
|
symbol
,
)
=>
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
zibri
Loading...
Defines a many to one property.