Properties

$className

$className : string

类名

Type

string

$tableName

$tableName : string

表名

Type

string

$dbPoolName

$dbPoolName : string

数据库连接池名称

Type

string

$id

$id : array

主键

Type

array

$firstId

$firstId : string

第一个主键

Type

string

$fieldNames

$fieldNames : array<mixed,string>

字段名列表

Type

array<mixed,string>

$realFieldNames

$realFieldNames : array<mixed,string>

字段名列表,会包含关联模型的导出字段

Type

array<mixed,string>

$camel

$camel : boolean

模型是否为驼峰命名

Type

boolean

$relation

$relation : boolean

是否有关联

Type

boolean

Methods

__construct()

__construct(  $modelClass) 

Parameters

$modelClass

getTableName()

getTableName() : string

Get 表名

Returns

string

getDbPoolName()

getDbPoolName() : string

Get 数据库连接池名称

Returns

string

getId()

getId() : array

Get 主键

Returns

array

getFirstId()

getFirstId() : string

Get 第一个主键

Returns

string

getFieldNames()

getFieldNames() : array<mixed,string>

Get 字段名列表

Returns

array<mixed,string>

isCamel()

isCamel() : boolean

Get 模型是否为驼峰命名

Returns

boolean

getRealFieldNames()

getRealFieldNames() : array<mixed,string>

Get 字段名列表,会包含关联模型的导出字段

Returns

array<mixed,string>

hasRelation()

hasRelation() : boolean

Get 是否有关联

Returns

boolean

getClassName()

getClassName() : string

Get 类名

Returns

string

getSerializableSets()

getSerializableSets() : array<mixed,\Imi\Model\Annotation\Serializable>

Get 序列化注解列表

Returns

array<mixed,\Imi\Model\Annotation\Serializable>