$field
$field : string
字段名
关联右侧字段
<?php
namespace Imi\Model\Annotation\Relation;
use Imi\Bean\Annotation\Base;
use Imi\Bean\Annotation\Parser;
/**
* 关联右侧字段
* @Annotation
* @Target("PROPERTY")
* @Parser("Imi\Model\Parser\RelationParser")
*/
class JoinTo extends Base
{
/**
* 只传一个参数时的参数名
* @var string
*/
protected $defaultFieldName = 'field';
/**
* 字段名
*
* @var string
*/
public $field;
}