Property | Type | Description | |
---|---|---|---|
$entityManager | Doctrine\Common\Persistence\ObjectManager | ||
$reflectionService | |||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | ||
$validatorResolver |
Method | Description | |
---|---|---|
add ( object $object ) : void | Adds an object to the persistence. | |
clearState ( ) : void | Clears the in-memory state of the persistence. | |
compile ( ) : boolean | Called from functional tests, creates/updates database tables and compiles proxies. | |
createQueryForType ( string $type ) : |
Return a query object for the given type. | |
getIdentifierByObject ( object $object ) : mixed | Returns the (internal) identifier for the object, if it is known to the backend. Otherwise NULL is returned. | |
getObjectByIdentifier ( mixed $identifier, string $objectType = null, boolean $useLazyLoading = false ) : object | Returns the object with the (internal) identifier, if it is known to the backend. Otherwise NULL is returned. | |
hasUnpersistedChanges ( ) : boolean | Gives feedback if the persistence Manager has unpersisted changes. | |
initializeObject ( ) : void | Initializes the persistence manager, called by Flow. | |
isConnected ( ) : boolean | Returns TRUE, if an active connection to the persistence backend has been established, e.g. entities can be persisted. | |
isNewObject ( object $object ) : boolean | Checks if the given object has ever been persisted. | |
onFlush ( Doctrine\ORM\Event\OnFlushEventArgs $eventArgs ) : void | An onFlush event listener used to validate entities upon persistence. | |
persistAll ( boolean $onlyWhitelistedObjects = false ) : void | Commits new objects and changes to objects in the current persistence session into the backend | |
remove ( object $object ) : void | Removes an object to the persistence. | |
tearDown ( ) : void | Called after a functional test in Flow, dumps everything in the database. | |
update ( object $object ) : void | Update an object in the persistence. |
Method | Description | |
---|---|---|
emitAllObjectsPersisted ( ) : void | Signals that all persistAll() has been executed successfully. | |
validateObject ( object $object, SplObjectStorage $validatedInstancesContainer ) : void | Validates the given object and throws an exception if validation fails. |
public clearState ( ) : void | ||
return | void |
public createQueryForType ( string $type ) : |
||
$type | string | |
return |
protected emitAllObjectsPersisted ( ) : void | ||
return | void |
public getIdentifierByObject ( object $object ) : mixed | ||
$object | object | |
return | mixed | The identifier for the object if it is known, or NULL |
public getObjectByIdentifier ( mixed $identifier, string $objectType = null, boolean $useLazyLoading = false ) : object | ||
$identifier | mixed | |
$objectType | string | |
$useLazyLoading | boolean | Set to TRUE if you want to use lazy loading for this object |
return | object | The object for the identifier if it is known, or NULL |
public hasUnpersistedChanges ( ) : boolean | ||
return | boolean |
public initializeObject ( ) : void | ||
return | void |
public isConnected ( ) : boolean | ||
return | boolean | TRUE, if an connection has been established, FALSE if add object will not be persisted by the backend |
public isNewObject ( object $object ) : boolean | ||
$object | object | The object to check |
return | boolean | TRUE if the object is new, FALSE if the object exists in the repository |
public persistAll ( boolean $onlyWhitelistedObjects = false ) : void | ||
$onlyWhitelistedObjects | boolean | If TRUE an exception will be thrown if there are scheduled updates/deletes or insertions for objects that are not "whitelisted" (see AbstractPersistenceManager::whitelistObject()) |
return | void |
protected validateObject ( object $object, SplObjectStorage $validatedInstancesContainer ) : void | ||
$object | object | |
$validatedInstancesContainer | SplObjectStorage | |
return | void |
protected ObjectManager,Doctrine\Common\Persistence $entityManager | ||
return | Doctrine\Common\Persistence\ObjectManager |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
return |
protected SystemLoggerInterface,Neos\Flow\Log $systemLogger | ||
return | Neos\Flow\Log\SystemLoggerInterface |