Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
LazyRecord
Schema
DeclareSchema
onUpdate
LazyRecord\Schema\DeclareSchema::onUpdate PHP Method
DeclareSchema Class Documentation
Show file
Open project: corneltek/lazyrecord
onUpdate()
public
method
onUpdate defines a software trigger of update action.
public
onUpdate
(
$action
)
public function onUpdate($action) { $this->onUpdate = $action; return $this; }
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