Maslosoft Mangan API
Class RelatedMeta
Related metadata holder
- Maslosoft\Mangan\Meta\BaseMeta uses Maslosoft\Addendum\Traits\MetaState (not available)
- Maslosoft\Mangan\Meta\RelatedMeta
Methods summary
Methods inherited from Maslosoft\Mangan\Meta\BaseMeta
Properties summary
public
boolean
|
$single
Whether treat field as single related document |
#
false
|
public
boolean
|
$isArray
Whether field should contain array of related documents. |
#
false
|
public
string
|
$class
Default class for related document. Defaults to current document class. |
#
''
|
public
boolean
|
$updatable
Whether related objects should be updated on save of main document |
#
true
|
public
mixed[]
|
$join
On which keys join documents. |
#
[]
|
public
integer[]
|
$sort
Default order of related entities. Key is sort field, value is direction, one of SortInterface constants. |
#
[]
|
public
mixed[]
|
$condition
Extra static condition for related entities. |
#
[]
|
public
string
|
$orderField
Field for storing order |
#
''
|
API documentation generated by ApiGen