TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Backend Class Reference
Inheritance diagram for Backend:
BackendInterface SingletonInterface

Public Member Functions

 injectSession (\TYPO3\CMS\Extbase\Persistence\Generic\Session $session)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 injectQomFactory (\TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory $qomFactory)
 
 injectStorageBackend (\TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface $storageBackend)
 
 injectDataMapper (\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper $dataMapper)
 
 injectSignalSlotDispatcher (\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher)
 
 __construct (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
 
 setPersistenceManager (\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface $persistenceManager)
 
 getSession ()
 
 getDataMapper ()
 
 getQomFactory ()
 
 getReflectionService ()
 
 getObjectCountByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 getObjectDataByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 getIdentifierByObject ($object)
 
 getObjectByIdentifier ($identifier, $className)
 
 isNewObject ($object)
 
 setAggregateRootObjects (\TYPO3\CMS\Extbase\Persistence\ObjectStorage $objects)
 
 setChangedEntities (\TYPO3\CMS\Extbase\Persistence\ObjectStorage $entities)
 
 setDeletedEntities (\TYPO3\CMS\Extbase\Persistence\ObjectStorage $entities)
 
 commit ()
 

Protected Member Functions

 emitBeforeGettingObjectDataSignal (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 emitAfterGettingObjectDataSignal (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query, array $result)
 
 persistObject (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object)
 
 propertyValueIsLazyLoaded ($propertyValue)
 
 getRemovedChildObjects (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, $propertyName)
 
 attachObjectToParentObject (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object,\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject, $parentPropertyName, $sortingPosition=0)
 
 updateRelationOfObjectToParentObject (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object,\TYPO3\CMS\Extbase\DomainObject\AbstractEntity $parentObject, $parentPropertyName, $sortingPosition=0)
 
 attachObjectToParentObjectRelationHasMany (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object,\TYPO3\CMS\Extbase\DomainObject\AbstractEntity $parentObject, $parentPropertyName, $sortingPosition=0)
 
 detachObjectFromParentObject (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object,\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject, $parentPropertyName)
 
 insertObject (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object,\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject=null, $parentPropertyName= '')
 
 emitAfterInsertObjectSignal (DomainObjectInterface $object)
 
 emitEndInsertObjectSignal (DomainObjectInterface $object)
 
 getUidOfAlreadyPersistedValueObject (\TYPO3\CMS\Extbase\DomainObject\AbstractValueObject $object)
 
 insertRelationInRelationtable (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object,\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject, $propertyName, $sortingPosition=null)
 
 updateRelationInRelationTable (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object,\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject, $propertyName, $sortingPosition=0)
 
 deleteAllRelationsFromRelationtable (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject, $parentPropertyName)
 
 deleteRelationFromRelationtable (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $relatedObject,\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject, $parentPropertyName)
 
 fetchMaxSortingFromParentTable (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject, $parentPropertyName)
 
 updateObject (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, array $row)
 
 emitAfterUpdateObjectSignal (DomainObjectInterface $object)
 
 emitAfterPersistObjectSignal (DomainObjectInterface $object)
 
 addCommonFieldsToRow (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, array &$row)
 
 addCommonDateFieldsToRow (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, array &$row)
 
 processDeletedObjects ()
 
 removeEntity (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, $markAsDeleted=true)
 
 emitAfterRemoveObjectSignal (DomainObjectInterface $object)
 
 removeRelatedObjects (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object)
 
 determineStoragePageIdForNewRecord (\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object=null)
 

Protected Attributes

 $session
 
 $persistenceManager
 
 $aggregateRootObjects
 
 $deletedEntities
 
 $changedEntities
 
 $visitedDuringPersistence
 
 $reflectionService
 
 $qomFactory
 
 $storageBackend
 
 $dataMapper
 
 $referenceIndex
 
 $configurationManager
 
 $signalSlotDispatcher
 

Detailed Description

A persistence backend. This backend maps objects to the relational model of the storage backend. It persists all added, removed and changed objects.

Definition at line 25 of file Backend.php.

Constructor & Destructor Documentation

__construct ( \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface  $configurationManager)

Constructs the backend

Parameters
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface$configurationManager

Definition at line 147 of file Backend.php.

References Backend\$configurationManager.

Member Function Documentation

addCommonDateFieldsToRow ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
array &  $row 
)
protected

Adjustes the common date fields of the given row to the current time

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$object
array&$rowThe row to be updated
Returns
void

Definition at line 1007 of file Backend.php.

References $GLOBALS.

Referenced by Backend\addCommonFieldsToRow(), and Backend\removeEntity().

addCommonFieldsToRow ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
array &  $row 
)
protected

Adds common databse fields to a row

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$object
array&$row
Returns
void

Definition at line 988 of file Backend.php.

References Backend\addCommonDateFieldsToRow(), and Backend\determineStoragePageIdForNewRecord().

Referenced by Backend\insertObject(), and Backend\updateObject().

attachObjectToParentObject ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $parentObject,
  $parentPropertyName,
  $sortingPosition = 0 
)
protected

Updates the fields defining the relation between the object and the parent object.

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$object
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$parentObject
string$parentPropertyName
int$sortingPosition
Returns
void

Definition at line 546 of file Backend.php.

References Backend\attachObjectToParentObjectRelationHasMany(), elseif, and Backend\insertRelationInRelationtable().

attachObjectToParentObjectRelationHasMany ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
\TYPO3\CMS\Extbase\DomainObject\AbstractEntity  $parentObject,
  $parentPropertyName,
  $sortingPosition = 0 
)
protected

Updates fields defining the relation between the object and the parent object in relation has-many.

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$object
\TYPO3\CMS\Extbase\DomainObject\AbstractEntity$parentObject
string$parentPropertyName
int$sortingPosition
Exceptions
\TYPO3\CMS\Extbase\Persistence\Exception\IllegalRelationTypeException
Returns
void

Definition at line 587 of file Backend.php.

References Backend\updateObject().

Referenced by Backend\attachObjectToParentObject(), and Backend\updateRelationOfObjectToParentObject().

commit ( )

Commits the current persistence session.

Returns
void

Implements BackendInterface.

Definition at line 343 of file Backend.php.

References Backend\processDeletedObjects().

deleteAllRelationsFromRelationtable ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $parentObject,
  $parentPropertyName 
)
protected

Delete all mm-relations of a parent from a relation table

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$parentObjectThe parent object
string$parentPropertyNameThe name of the parent object's property where the related objects are stored in
Returns
bool TRUE if delete was successfully

Definition at line 836 of file Backend.php.

deleteRelationFromRelationtable ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $relatedObject,
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $parentObject,
  $parentPropertyName 
)
protected

Delete an mm-relation from a relation table

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$relatedObjectThe related object
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$parentObjectThe parent object
string$parentPropertyNameThe name of the parent object's property where the related objects are stored in
Returns
bool

Definition at line 860 of file Backend.php.

Referenced by Backend\detachObjectFromParentObject().

detachObjectFromParentObject ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $parentObject,
  $parentPropertyName 
)
protected

Updates the fields defining the relation between the object and the parent object.

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$object
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$parentObject
string$parentPropertyName
Returns
void

Definition at line 628 of file Backend.php.

References Backend\deleteRelationFromRelationtable(), elseif, and Backend\updateObject().

determineStoragePageIdForNewRecord ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object = null)
protected

Determine the storage page ID for a given NEW record

This does the following:

  • If the domain object has an accessible property 'pid' (i.e. through a getPid() method), that is used to store the record.
  • If there is a TypoScript configuration "classes.CLASSNAME.newRecordStoragePid", that is used to store new records.
  • If there is no such TypoScript configuration, it uses the first value of The "storagePid" taken for reading records.
Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$object
Returns
int the storage Page ID where the object should be stored

Definition at line 1115 of file Backend.php.

Referenced by Backend\addCommonFieldsToRow(), and Backend\insertRelationInRelationtable().

emitAfterGettingObjectDataSignal ( \TYPO3\CMS\Extbase\Persistence\QueryInterface  $query,
array  $result 
)
protected

Emits a signal after object data is fetched

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
array$result
Returns
array Modified result

Definition at line 250 of file Backend.php.

emitAfterInsertObjectSignal ( DomainObjectInterface  $object)
protected

Emits a signal after an object was added to the storage

Parameters
DomainObjectInterface$object

Definition at line 739 of file Backend.php.

Referenced by Backend\insertObject().

emitAfterPersistObjectSignal ( DomainObjectInterface  $object)
protected

Emits a signal after an object was persisted

Parameters
DomainObjectInterface$object

Definition at line 976 of file Backend.php.

Referenced by Backend\persistObject().

emitAfterRemoveObjectSignal ( DomainObjectInterface  $object)
protected

Emits a signal after an object was removed from storage

Parameters
DomainObjectInterface$object

Definition at line 1072 of file Backend.php.

Referenced by Backend\removeEntity().

emitAfterUpdateObjectSignal ( DomainObjectInterface  $object)
protected

Emits a signal after an object was updated in storage

Parameters
DomainObjectInterface$object

Definition at line 966 of file Backend.php.

Referenced by Backend\updateObject().

emitBeforeGettingObjectDataSignal ( \TYPO3\CMS\Extbase\Persistence\QueryInterface  $query)
protected

Emits a signal before object data is fetched

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
Returns
Modified query

Definition at line 237 of file Backend.php.

Referenced by Backend\getObjectDataByQuery().

emitEndInsertObjectSignal ( DomainObjectInterface  $object)
protected

Emits a signal after an object was registered in persistence session This signal replaces the afterInsertObject signal which is now deprecated

Parameters
DomainObjectInterface$object

Definition at line 750 of file Backend.php.

Referenced by Backend\insertObject().

fetchMaxSortingFromParentTable ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $parentObject,
  $parentPropertyName 
)
protected

Fetches maximal value currently used for sorting field in parent table

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$parentObjectThe parent object
string$parentPropertyNameThe name of the parent object's property where the related objects are stored in
Exceptions
\TYPO3\CMS\Extbase\Persistence\Exception\IllegalRelationTypeException
Returns
mixed the max value

Definition at line 885 of file Backend.php.

References elseif.

getDataMapper ( )

Returns the Data Mapper

Returns

Definition at line 179 of file Backend.php.

References Backend\$dataMapper.

getIdentifierByObject (   $object)

Returns the (internal) identifier for the object, if it is known to the backend. Otherwise NULL is returned.

Parameters
object$object
Returns
string|NULL The identifier for the object if it is known, or NULL

Implements BackendInterface.

Definition at line 263 of file Backend.php.

Referenced by Backend\isNewObject().

getObjectByIdentifier (   $identifier,
  $className 
)

Returns the object with the (internal) identifier, if it is known to the backend. Otherwise NULL is returned.

Parameters
string$identifier
string$className
Returns
object|NULL The object for the identifier if it is known, or NULL

Implements BackendInterface.

Definition at line 282 of file Backend.php.

getObjectCountByQuery ( \TYPO3\CMS\Extbase\Persistence\QueryInterface  $query)

Returns the number of records matching the query.

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
Returns
int

Implements BackendInterface.

Definition at line 211 of file Backend.php.

getObjectDataByQuery ( \TYPO3\CMS\Extbase\Persistence\QueryInterface  $query)

Returns the object data matching the $query.

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
Returns
array

Implements BackendInterface.

Definition at line 223 of file Backend.php.

References Backend\emitBeforeGettingObjectDataSignal().

getQomFactory ( )

Returns the current QOM factory

Returns

Definition at line 189 of file Backend.php.

References Backend\$qomFactory.

getReflectionService ( )

Returns the reflection service

Returns

Definition at line 199 of file Backend.php.

References Backend\$reflectionService.

getRemovedChildObjects ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
  $propertyName 
)
protected

Returns the removed objects determined by a comparison of the clean property value with the actual property value.

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$objectThe object
string$propertyName
Returns
array An array of removed objects

Definition at line 522 of file Backend.php.

getSession ( )

Returns the repository session

Returns

Definition at line 169 of file Backend.php.

References Backend\$session.

getUidOfAlreadyPersistedValueObject ( \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject  $object)
protected

Tests, if the given Value Object already exists in the storage backend and if so, it returns the uid.

Parameters
\TYPO3\CMS\Extbase\DomainObject\AbstractValueObject$objectThe object to be tested
Returns
mixed The matching uid if an object was found, else FALSE

Definition at line 761 of file Backend.php.

Referenced by Backend\insertObject().

injectDataMapper ( \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper  $dataMapper)
Parameters
\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper$dataMapper

Definition at line 129 of file Backend.php.

References Backend\$dataMapper.

Parameters
\TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory$qomFactory

Definition at line 113 of file Backend.php.

References Backend\$qomFactory.

injectReflectionService ( \TYPO3\CMS\Extbase\Reflection\ReflectionService  $reflectionService)
Parameters
\TYPO3\CMS\Extbase\Reflection\ReflectionService$reflectionService

Definition at line 105 of file Backend.php.

References Backend\$reflectionService.

injectSession ( \TYPO3\CMS\Extbase\Persistence\Generic\Session  $session)
Parameters
\TYPO3\CMS\Extbase\Persistence\Generic\Session$session

Definition at line 97 of file Backend.php.

References Backend\$session.

injectSignalSlotDispatcher ( \TYPO3\CMS\Extbase\SignalSlot\Dispatcher  $signalSlotDispatcher)
Parameters
\TYPO3\CMS\Extbase\SignalSlot\Dispatcher$signalSlotDispatcher

Definition at line 137 of file Backend.php.

References Backend\$signalSlotDispatcher.

injectStorageBackend ( \TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface  $storageBackend)
Parameters
\TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface$storageBackend

Definition at line 121 of file Backend.php.

References Backend\$storageBackend.

insertObject ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $parentObject = null,
  $parentPropertyName = '' 
)
protected

Inserts an object in the storage backend

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$objectThe object to be insterted in the storage
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$parentObjectThe parentobject.
string$parentPropertyName
Returns
void

Definition at line 666 of file Backend.php.

References Backend\addCommonFieldsToRow(), elseif, Backend\emitAfterInsertObjectSignal(), Backend\emitEndInsertObjectSignal(), Backend\getUidOfAlreadyPersistedValueObject(), Backend\propertyValueIsLazyLoaded(), ColumnMap\RELATION_HAS_ONE, and ColumnMap\RELATION_NONE.

Referenced by Backend\persistObject().

insertRelationInRelationtable ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $parentObject,
  $propertyName,
  $sortingPosition = null 
)
protected

Inserts mm-relation into a relation table

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$objectThe related object
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$parentObjectThe parent object
string$propertyNameThe name of the parent object's property where the related objects are stored in
int$sortingPositionDefaults to NULL
Returns
int The uid of the inserted row

Definition at line 775 of file Backend.php.

References Backend\determineStoragePageIdForNewRecord().

Referenced by Backend\attachObjectToParentObject().

isNewObject (   $object)

Checks if the given object has ever been persisted.

Parameters
object$objectThe object to check
Returns
bool TRUE if the object is new, FALSE if the object exists in the repository

Implements BackendInterface.

Definition at line 300 of file Backend.php.

References Backend\getIdentifierByObject().

persistObject ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object)
protected

Persists the given object.

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$objectThe object to be inserted
Returns
void

Definition at line 375 of file Backend.php.

References elseif, Backend\emitAfterPersistObjectSignal(), Backend\insertObject(), Backend\propertyValueIsLazyLoaded(), and Backend\updateObject().

processDeletedObjects ( )
protected

Iterate over deleted aggregate root objects and process them

Returns
void

Definition at line 1023 of file Backend.php.

References Backend\removeEntity().

Referenced by Backend\commit().

propertyValueIsLazyLoaded (   $propertyValue)
protected

Checks, if the property value is lazy loaded and was not initialized

Parameters
mixed$propertyValueThe property value
Returns
bool

Definition at line 436 of file Backend.php.

Referenced by Backend\insertObject(), and Backend\persistObject().

removeEntity ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
  $markAsDeleted = true 
)
protected

Deletes an object

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$objectThe object to be removed from the storage
bool$markAsDeletedWhether to just flag the row deleted (default) or really delete it
Returns
void

Definition at line 1042 of file Backend.php.

References Backend\addCommonDateFieldsToRow(), Backend\emitAfterRemoveObjectSignal(), and Backend\removeRelatedObjects().

Referenced by Backend\processDeletedObjects(), and Backend\removeRelatedObjects().

removeRelatedObjects ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object)
protected

Remove related objects

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$objectThe object to scanned for related objects
Returns
void

Definition at line 1083 of file Backend.php.

References elseif, and Backend\removeEntity().

Referenced by Backend\removeEntity().

setAggregateRootObjects ( \TYPO3\CMS\Extbase\Persistence\ObjectStorage  $objects)

Sets the aggregate root objects

Parameters
\TYPO3\CMS\Extbase\Persistence\ObjectStorage$objects
Returns
void

Implements BackendInterface.

Definition at line 311 of file Backend.php.

setChangedEntities ( \TYPO3\CMS\Extbase\Persistence\ObjectStorage  $entities)

Sets the changed objects

Parameters
\TYPO3\CMS\Extbase\Persistence\ObjectStorage$entities
Returns
void

Implements BackendInterface.

Definition at line 322 of file Backend.php.

setDeletedEntities ( \TYPO3\CMS\Extbase\Persistence\ObjectStorage  $entities)

Sets the deleted objects

Parameters
\TYPO3\CMS\Extbase\Persistence\ObjectStorage$entities
Returns
void

Implements BackendInterface.

Definition at line 333 of file Backend.php.

setPersistenceManager ( \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface  $persistenceManager)
Parameters
\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface$persistenceManager

Implements BackendInterface.

Definition at line 159 of file Backend.php.

References Backend\$persistenceManager.

updateObject ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
array  $row 
)
protected

Updates a given object in the storage

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$objectThe object to be updated
array$rowRow to be stored
Returns
bool

Definition at line 939 of file Backend.php.

References Backend\addCommonFieldsToRow(), and Backend\emitAfterUpdateObjectSignal().

Referenced by Backend\attachObjectToParentObjectRelationHasMany(), Backend\detachObjectFromParentObject(), and Backend\persistObject().

updateRelationInRelationTable ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $parentObject,
  $propertyName,
  $sortingPosition = 0 
)
protected

Updates mm-relation in a relation table

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$objectThe related object
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$parentObjectThe parent object
string$propertyNameThe name of the parent object's property where the related objects are stored in
int$sortingPositionDefaults to NULL
Returns
bool TRUE if update was successfully

Definition at line 809 of file Backend.php.

Referenced by Backend\updateRelationOfObjectToParentObject().

updateRelationOfObjectToParentObject ( \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface  $object,
\TYPO3\CMS\Extbase\DomainObject\AbstractEntity  $parentObject,
  $parentPropertyName,
  $sortingPosition = 0 
)
protected

Updates the fields defining the relation between the object and the parent object.

Parameters
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface$object
\TYPO3\CMS\Extbase\DomainObject\AbstractEntity$parentObject
string$parentPropertyName
int$sortingPosition
Returns
void

Definition at line 566 of file Backend.php.

References Backend\attachObjectToParentObjectRelationHasMany(), elseif, and Backend\updateRelationInRelationTable().

Member Data Documentation

$aggregateRootObjects
protected

Definition at line 40 of file Backend.php.

$changedEntities
protected

Definition at line 50 of file Backend.php.

$configurationManager
protected

Definition at line 87 of file Backend.php.

Referenced by Backend\__construct().

$dataMapper
protected

Definition at line 75 of file Backend.php.

Referenced by Backend\getDataMapper(), and Backend\injectDataMapper().

$deletedEntities
protected

Definition at line 45 of file Backend.php.

$persistenceManager
protected

Definition at line 35 of file Backend.php.

Referenced by Backend\setPersistenceManager().

$qomFactory
protected

Definition at line 65 of file Backend.php.

Referenced by Backend\getQomFactory(), and Backend\injectQomFactory().

$referenceIndex
protected

Definition at line 82 of file Backend.php.

$reflectionService
protected

Definition at line 60 of file Backend.php.

Referenced by Backend\getReflectionService(), and Backend\injectReflectionService().

$session
protected

Definition at line 30 of file Backend.php.

Referenced by Backend\getSession(), and Backend\injectSession().

$signalSlotDispatcher
protected

Definition at line 92 of file Backend.php.

Referenced by Backend\injectSignalSlotDispatcher().

$storageBackend
protected

Definition at line 70 of file Backend.php.

Referenced by Backend\injectStorageBackend().

$visitedDuringPersistence
protected

Definition at line 55 of file Backend.php.