PHP Class Neos\Flow\Persistence\Aspect\PersistenceMagicAspect

Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$Persistence_Object_Identifier string
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$reflectionService Neos\Flow\Reflection\ReflectionService
$useIgBinary boolean If the extension "igbinary" is installed, use it for increased performance

Public Methods

Method Description
cloneObject ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void Mark object as cloned after cloning.
generateUuid ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void After returning advice, making sure we have an UUID for each and every entity.
generateValueHash ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void After returning advice, generates the value hash for the object
initializeObject ( ) : void Initializes this aspect
isEntity ( )
isEntityOrValueObject ( )
isNonEmbeddedValueObject ( )

Method Details

cloneObject() public method

Note: this is not used by anything in the Flow base distribution, but might be needed by custom backends (like Neos.CouchDB).
public cloneObject ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface
return void

generateUuid() public method

After returning advice, making sure we have an UUID for each and every entity.
public generateUuid ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point
return void

generateValueHash() public method

After returning advice, generates the value hash for the object
public generateValueHash ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point
return void

initializeObject() public method

Initializes this aspect
public initializeObject ( ) : void
return void

isEntity() public method

public isEntity ( )

isEntityOrValueObject() public method

isNonEmbeddedValueObject() public method

Property Details

$Persistence_Object_Identifier protected property

protected string $Persistence_Object_Identifier
return string

$persistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface

$reflectionService protected property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
return Neos\Flow\Reflection\ReflectionService

$useIgBinary protected property

If the extension "igbinary" is installed, use it for increased performance
protected bool $useIgBinary
return boolean