Documentation

OneToManyPersister extends AbstractCollectionPersister
in package

Persister for one-to-many collections.

Table of Contents

Properties

$conn  : Connection
$em  : EntityManagerInterface
$platform  : AbstractPlatform
The database platform.
$quoteStrategy  : QuoteStrategy
$uow  : UnitOfWork

Methods

__construct()  : mixed
Initializes a new instance of a class derived from AbstractCollectionPersister.
contains()  : mixed
{@inheritDoc}
containsKey()  : mixed
{@inheritDoc}
count()  : mixed
{@inheritDoc}
delete()  : int|null
{@inheritDoc}
get()  : mixed
{@inheritDoc}
loadCriteria()  : mixed
{@inheritDoc}
slice()  : mixed
{@inheritDoc}
update()  : mixed
{@inheritDoc}
isValidEntityState()  : bool
Check if entity is in a valid state for operations.
deleteEntityCollection()  : int
deleteJoinedEntityCollection()  : int
Delete Class Table Inheritance entities.

Properties

Methods

isValidEntityState()

Check if entity is in a valid state for operations.

protected isValidEntityState(object $entity) : bool
Parameters
$entity : object
Return values
bool

deleteJoinedEntityCollection()

Delete Class Table Inheritance entities.

private deleteJoinedEntityCollection(PersistentCollection $collection) : int

A temporary table is needed to keep IDs to be deleted in both parent and child class' tables.

Thanks Steve Ebersole (Hibernate) for idea on how to tackle reliably this scenario, we owe him a beer! =)

Parameters
$collection : PersistentCollection
Tags
throws
Exception
Return values
int

        
On this page

Search results