\Imi\Model\Relation\StructOneToOne

Summary

Methods
Properties
Constants
initLeftAndRight()
getLeftField()
getRightField()
getRightModel()
__construct()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$leftField
$rightField
$rightModel
N/A

Properties

$leftField

$leftField : string

左侧表字段

Type

string

$rightField

$rightField : string

右侧表字段

Type

string

$rightModel

$rightModel : string

右侧模型类

Type

string

Methods

initLeftAndRight()

initLeftAndRight(  $className, string  $propertyName, \Imi\Model\Annotation\Relation\OneToOne  $annotation) : void

初始化左右关联

Parameters

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

getLeftField()

getLeftField() 

Get the value of leftField

getRightField()

getRightField() 

Get the value of rightField

getRightModel()

getRightModel() : string

Get 右侧模型类

Returns

string

__construct()

__construct(  $className,   $propertyName,   $annotation) 

Parameters

$className
$propertyName
$annotation