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
Doctrine
ODM
MongoDB
Mapping
ClassMetadataInfo
setLifecycleCallbacks
Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo::setLifecycleCallbacks PHP Method
ClassMetadataInfo Class Documentation
Show file
Open project: doctrine/mongodb-odm
setLifecycleCallbacks()
public
method
Any previously registered callbacks are overwritten.
public
setLifecycleCallbacks
(
array
$callbacks
)
$callbacks
array
public function setLifecycleCallbacks(array $callbacks) { $this->lifecycleCallbacks = $callbacks; }
ClassMetadataInfo
__construct
addIndex
addInheritedAssociationMapping
addInheritedFieldMapping
addLifecycleCallback
applyStorageStrategy
getAssociationCollectionClass
getAssociationMappedByTargetField
getAssociationNames
getAssociationTargetClass
getCollection
getCollectionCapped
getCollectionMax
getCollectionSize
getDatabase
getDatabaseIdentifierValue
getDistance
getEmbeddedFieldsMappings
getFieldMapping
getFieldMappingByDbFieldName
getFieldNames
getFieldValue
getFile
getIdentifier
getIdentifierFieldNames
getIdentifierObject
getIdentifierValue
getIdentifierValues
getIndexes
getLifecycleCallbacks
getName
getNamespace
getPHPIdentifierValue
getReflectionClass
getReflectionProperties
getReflectionProperty
getShardKey
getTypeOfField
getWriteConcern
hasAssociation
hasDiscriminator
hasEmbed
hasField
hasIndexes
hasLifecycleCallbacks
hasReference
hasWriteConcern
invokeLifecycleCallbacks
isAssociationInverseSide
isChangeTrackingDeferredExplicit
isChangeTrackingDeferredImplicit
isChangeTrackingNotify
isCollectionValuedAssociation
isCollectionValuedEmbed
isCollectionValuedReference
isFile
isIdGeneratorAuto
isIdGeneratorIncrement
isIdGeneratorNone
isIdGeneratorUuid
isIdentifier
isInheritanceTypeCollectionPerClass
isInheritanceTypeNone
isInheritanceTypeSingleCollection
isInheritedField
isMappedToCollection
isNullable
isSharded
isSingleValuedAssociation
isSingleValuedEmbed
isSingleValuedReference
mapField
mapFile
mapManyEmbedded
mapManyReference
mapOneEmbedded
mapOneReference
registerAlsoLoadMethod
setAlsoLoadMethods
setChangeTrackingPolicy
setCollection
setCollectionCapped
setCollectionMax
setCollectionSize
setCustomRepositoryClass
setDatabase
setDefaultDiscriminatorValue
setDiscriminatorField
setDiscriminatorMap
setDiscriminatorValue
setDistance
setFieldValue
setFile
setIdGenerator
setIdGeneratorOptions
setIdGeneratorType
setIdentifier
setIdentifierValue
setInheritanceType
setLifecycleCallbacks
setLockField
setLockMapping
setLockable
setParentClasses
setRequireIndexes
setShardKey
setSlaveOkay
setSubclasses
setVersionField
setVersionMapping
setVersioned
setWriteConcern