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
$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
contains()
{@inheritDoc}
public
contains(PersistentCollection $collection, mixed $element) : mixed
Parameters
- $collection : PersistentCollection
- $element : mixed
containsKey()
{@inheritDoc}
public
containsKey(PersistentCollection $collection, mixed $key) : mixed
Parameters
- $collection : PersistentCollection
- $key : mixed
count()
{@inheritDoc}
public
count(PersistentCollection $collection) : mixed
Parameters
- $collection : PersistentCollection
delete()
{@inheritDoc}
public
delete(PersistentCollection $collection) : int|null
Parameters
- $collection : PersistentCollection
Return values
int|nullget()
{@inheritDoc}
public
get(PersistentCollection $collection, mixed $index) : mixed
Parameters
- $collection : PersistentCollection
- $index : mixed
loadCriteria()
{@inheritDoc}
public
loadCriteria(PersistentCollection $collection, Criteria $criteria) : mixed
Parameters
- $collection : PersistentCollection
- $criteria : Criteria
slice()
{@inheritDoc}
public
slice(PersistentCollection $collection, mixed $offset[, mixed $length = null ]) : mixed
Parameters
- $collection : PersistentCollection
- $offset : mixed
- $length : mixed = null
update()
{@inheritDoc}
public
update(PersistentCollection $collection) : mixed
Parameters
- $collection : PersistentCollection
isValidEntityState()
Check if entity is in a valid state for operations.
protected
isValidEntityState(object $entity) : bool
Parameters
- $entity : object
Return values
booldeleteEntityCollection()
private
deleteEntityCollection(PersistentCollection $collection) : int
Parameters
- $collection : PersistentCollection
Tags
Return values
intdeleteJoinedEntityCollection()
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