\Imi\Model\Relation\StructPolymorphicManyToMany

Summary

Methods
Properties
Constants
__construct()
getLeftField()
getRightField()
getRightModel()
getMiddleLeftField()
getMiddleRightField()
getMiddleModel()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$leftField
$rightField
$rightModel
$middleLeftField
$middleRightField
$middleModel
N/A

Properties

$leftField

$leftField : string

左侧表字段

Type

string

$rightField

$rightField : string

右侧表字段

Type

string

$rightModel

$rightModel : string

右侧模型类

Type

string

$middleLeftField

$middleLeftField : string

中间表与左表关联的字段

Type

string

$middleRightField

$middleRightField : string

中间表与右表关联的字段

Type

string

$middleModel

$middleModel : string

中间表模型类

Type

string

Methods

__construct()

__construct(  $className, string  $propertyName, \Imi\Model\Annotation\Relation\ManyToMany  $annotation) : void

初始化多对多结构

Parameters

$className
string $propertyName
\Imi\Model\Annotation\Relation\ManyToMany $annotation

getLeftField()

getLeftField() : string

Get 左侧表字段

Returns

string

getRightField()

getRightField() : string

Get 右侧表字段

Returns

string

getRightModel()

getRightModel() : string

Get 右侧模型类

Returns

string

getMiddleLeftField()

getMiddleLeftField() : string

Get 中间表与左表关联的字段

Returns

string

getMiddleRightField()

getMiddleRightField() : string

Get 中间表与右表关联的字段

Returns

string

getMiddleModel()

getMiddleModel() : string

Get 中间表模型类

Returns

string