OneToManyPersister
extends AbstractCollectionPersister
in package
Persister for one-to-many collections.
Table of Contents
- $conn : Connection
- $em : EntityManagerInterface
- $platform : AbstractPlatform
- The database platform.
- $quoteStrategy : QuoteStrategy
- $uow : UnitOfWork
- __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
$conn
protected
Connection
$conn
$em
protected
EntityManagerInterface
$em
$platform
The database platform.
protected
AbstractPlatform
$platform
$quoteStrategy
protected
QuoteStrategy
$quoteStrategy
$uow
protected
UnitOfWork
$uow
Methods
__construct()
Initializes a new instance of a class derived from AbstractCollectionPersister.
public
__construct(EntityManagerInterface $em) : mixed
Parameters
- $em : EntityManagerInterface
Return values
mixed —contains()
{@inheritdoc}
public
contains(PersistentCollection $collection, mixed $element) : mixed
Parameters
- $collection : PersistentCollection
- $element : mixed
Return values
mixed —containsKey()
{@inheritdoc}
public
containsKey(PersistentCollection $collection, mixed $key) : mixed
Parameters
- $collection : PersistentCollection
- $key : mixed
Return values
mixed —count()
{@inheritdoc}
public
count(PersistentCollection $collection) : mixed
Parameters
- $collection : PersistentCollection
Return values
mixed —delete()
{@inheritdoc}
public
delete(PersistentCollection $collection) : int|null
Parameters
- $collection : PersistentCollection
Return values
int|null —get()
{@inheritdoc}
public
get(PersistentCollection $collection, mixed $index) : mixed
Parameters
- $collection : PersistentCollection
- $index : mixed
Return values
mixed —loadCriteria()
{@inheritdoc}
public
loadCriteria(PersistentCollection $collection, Criteria $criteria) : mixed
Parameters
- $collection : PersistentCollection
- $criteria : Criteria
Return values
mixed —slice()
{@inheritdoc}
public
slice(PersistentCollection $collection, mixed $offset[, mixed $length = null ]) : mixed
Parameters
- $collection : PersistentCollection
- $offset : mixed
- $length : mixed = null
Return values
mixed —update()
{@inheritdoc}
public
update(PersistentCollection $collection) : mixed
Parameters
- $collection : PersistentCollection
Return values
mixed —isValidEntityState()
Check if entity is in a valid state for operations.
protected
isValidEntityState(object $entity) : bool
Parameters
- $entity : object
Return values
bool —deleteEntityCollection()
private
deleteEntityCollection(PersistentCollection $collection) : int
Parameters
- $collection : PersistentCollection
Tags
Return values
int —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