Doctrine\ORM\Persisters\ElementCollectionPersister
Persister for collections of basic elements / value types.
- Author: robo
Synopsis
class ElementCollectionPersister
extends AbstractCollectionPersister
{
- // Inherited members from AbstractCollectionPersister
- protected EntityManager $_em;
- protected Connection $_conn;
- protected UnitOfWork $_uow;
- protected AbstractPlatform $platform;
- protected QuoteStrategy $quoteStrategy;
- // Inherited methods from AbstractCollectionPersister
- public void __construct()
- public void delete()
- protected abstract void _getDeleteSQL()
- protected abstract void _getDeleteSQLParameters()
- public void update()
- public void deleteRows()
- public void insertRows()
- public void count()
- public void slice()
- public void contains()
- public void containsKey()
- public void removeElement()
- public void removeKey()
- public void get()
- protected abstract void _getDeleteRowSQL()
- protected abstract void _getDeleteRowSQLParameters()
- protected abstract void _getUpdateRowSQL()
- protected abstract void _getInsertRowSQL()
- protected abstract void _getInsertRowSQLParameters()
Hierarchy
Tasks
Line | Task |
---|---|
27+ | Implementation once support for collections of basic elements (i.e. strings) is added. |
Members
protected
- $_conn — \Doctrine\DBAL\Connection
- $_em — Doctrine\ORM\EntityManager
- $_uow — \Doctrine\ORM\UnitOfWork
- $platform
—
\Doctrine\DBAL\Platforms\AbstractPlatform
The database platform. - $quoteStrategy
—
\Doctrine\ORM\Mapping\QuoteStrategy
The quote strategy.
Methods
Inherited from Doctrine\ORM\Persisters\AbstractCollectionPersister
protected
- _getDeleteRowSQL() — Gets the SQL statement used for deleting a row from the collection.
- _getDeleteRowSQLParameters() — Gets the SQL parameters for the corresponding SQL statement to delete the given element from the given collection.
- _getDeleteSQL() — Gets the SQL statement for deleting the given collection.
- _getDeleteSQLParameters() — Gets the SQL parameters for the corresponding SQL statement to delete the given collection.
- _getInsertRowSQL() — Gets the SQL statement used for inserting a row in the collection.
- _getInsertRowSQLParameters() — Gets the SQL parameters for the corresponding SQL statement to insert the given element of the given collection into the database.
- _getUpdateRowSQL() — Gets the SQL statement used for updating a row in the collection.
public
- contains()
- containsKey()
- count()
- delete() — Deletes the persistent state represented by the given collection.
- deleteRows()
- get()
- insertRows()
- removeElement()
- removeKey()
- slice()
- update() — Updates the given collection, synchronizing it's state with the database by inserting, updating and deleting individual elements.