abstract class BaseORM implements BreadcrumbAdapter

Class ORM - contains base methods for ORM manipulation

Methods

setEventArgs(EventArgs $args)

Set the eventargs

string
getDomainObjectName()

Get the name of domain object

string
getManagerName()

Get the name of used manager for this event adapter

string
getRootObjectClass(ClassMetadata $meta)

Get the root object class, handles inheritance

mixed
__call(string $method, array $args)

Call specific method on event args

setEntityManager(EntityManager $em)

Set the entity manager

EntityManager
getObjectManager()

No description

int
getObjectState(UnitOfWork $uow, object $object)

Get object state

array
getObjectChangeSet(UnitOfWork $uow, object $object)

Get the object change set from a UnitOfWork

string
getSingleIdentifierFieldName(ClassMetadata $meta)

Get the single identifier field name

void
recomputeSingleObjectChangeSet(UnitOfWork $uow, ClassMetadata $meta, object $object)

Recompute the single object changeset from a UnitOfWork

array
getScheduledObjectUpdates(UnitOfWork $uow)

Get the scheduled object updates from a UnitOfWork

array
getScheduledObjectInsertions(UnitOfWork $uow)

Get the scheduled object insertions from a UnitOfWork

array
getScheduledObjectDeletions(UnitOfWork $uow)

Get the scheduled object deletions from a UnitOfWork

void
setOriginalObjectProperty(UnitOfWork $uow, string $oid, string $property, mixed $value)

Sets a property value of the original data array of an object

clearObjectChangeSet(UnitOfWork $uow, string $oid)

Clears the property change set of the object with the given OID.

Details

at line 38
setEventArgs(EventArgs $args)

Set the eventargs

Parameters

EventArgs $args

at line 48
string getDomainObjectName()

Get the name of domain object

Return Value

string

at line 59
string getManagerName()

Get the name of used manager for this event adapter

Return Value

string

at line 71
string getRootObjectClass(ClassMetadata $meta)

Get the root object class, handles inheritance

Parameters

ClassMetadata $meta

Return Value

string

at line 84
mixed __call(string $method, array $args)

Call specific method on event args

Parameters

string $method
array $args

Return Value

mixed

at line 99
setEntityManager(EntityManager $em)

Set the entity manager

Parameters

EntityManager $em

at line 107
EntityManager getObjectManager()

Return Value

EntityManager

at line 124
int getObjectState(UnitOfWork $uow, object $object)

Get object state

Parameters

UnitOfWork $uow
object $object

Return Value

int The document state.

at line 132
array getObjectChangeSet(UnitOfWork $uow, object $object)

Get the object change set from a UnitOfWork

Parameters

UnitOfWork $uow
object $object

Return Value

array

at line 144
string getSingleIdentifierFieldName(ClassMetadata $meta)

Get the single identifier field name

Parameters

ClassMetadata $meta

Return Value

string

at line 158
void recomputeSingleObjectChangeSet(UnitOfWork $uow, ClassMetadata $meta, object $object)

Recompute the single object changeset from a UnitOfWork

Parameters

UnitOfWork $uow
ClassMetadata $meta
object $object

Return Value

void

at line 170
array getScheduledObjectUpdates(UnitOfWork $uow)

Get the scheduled object updates from a UnitOfWork

Parameters

UnitOfWork $uow

Return Value

array

at line 182
array getScheduledObjectInsertions(UnitOfWork $uow)

Get the scheduled object insertions from a UnitOfWork

Parameters

UnitOfWork $uow

Return Value

array

at line 194
array getScheduledObjectDeletions(UnitOfWork $uow)

Get the scheduled object deletions from a UnitOfWork

Parameters

UnitOfWork $uow

Return Value

array

at line 209
void setOriginalObjectProperty(UnitOfWork $uow, string $oid, string $property, mixed $value)

Sets a property value of the original data array of an object

Parameters

UnitOfWork $uow
string $oid
string $property
mixed $value

Return Value

void

at line 220
clearObjectChangeSet(UnitOfWork $uow, string $oid)

Clears the property change set of the object with the given OID.

Parameters

UnitOfWork $uow
string $oid The object's OID.