$leftField
$leftField : string
左侧表字段
initLeftAndRight( $className, string $propertyName, \Imi\Model\Annotation\Relation\OneToOne $annotation) : void
初始化左右关联
$className | ||
string | $propertyName | |
\Imi\Model\Annotation\Relation\OneToOne | $annotation |
<?php
namespace Imi\Model\Relation\Struct;
use Imi\Util\Imi;
use Imi\Util\Text;
use Imi\Model\ModelManager;
class OneToMany
{
use TLeftAndRight;
public function __construct($className, $propertyName, $annotation)
{
$this->initLeftAndRight($className, $propertyName, $annotation);
}
}