Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
LazyRecord
Schema
DeclareSchema
addModelTrait
LazyRecord\Schema\DeclareSchema::addModelTrait PHP Method
DeclareSchema Class Documentation
ファイルを表示
Open project: corneltek/lazyrecord
addModelTrait()
public
method
Use trait for the model class.
public
addModelTrait
(
$traitClass
) :
ClassTemplate\ClassTrait
return
ClassTemplate\ClassTrait
object
public function addModelTrait($traitClass) { $this->modelTraitClasses[] = $traitClass; }
DeclareSchema
__construct
__toString
_classnameToTable
_modelClassToLabel
addCollectionInterface
addCollectionTrait
addColumn
addModelInterface
addModelTrait
addSeed
belongsTo
build
column
disableColumnAccessors
dump
export
findPrimaryKey
findPrimaryKeyColumn
getClassFileName
getClassName
getCollectionInterfaces
getCollectionTraitClasses
getColumn
getColumnLabels
getColumnNames
getColumns
getCurrentSchemaClass
getDirectory
getIndexQueries
getLabel
getModelClass
getModelInterfaces
getModelTraitClasses
getModificationTime
getMsgIds
getPrimaryKey
getReadSourceId
getRelatedClassPath
getShortClassName
getTable
getWriteSourceId
hasColumn
hasMany
hasOne
helper
index
insertAutoIdPrimaryColumn
insertColumn
isNewerThanFile
label
many
manyToMany
mixin
onDelete
onUpdate
readFrom
removeColumn
requireProxyFileUpdate
resolveSchemaClass
schema
seeds
table
using
writeTo