Doctrine\ORM\Persisters\OneToManyPersister
Persister for one-to-many collections.
- Author: Roman Borschel <roman@code-factory.org>
Synopsis
class OneToManyPersister
extends AbstractCollectionPersister
{
- // Inherited members from AbstractCollectionPersister
- protected EntityManager $_em;
- protected Connection $_conn;
- protected UnitOfWork $_uow;
- protected AbstractPlatform $platform;
- protected QuoteStrategy $quoteStrategy;
- // methods
- protected string _getDeleteRowSQL()
- protected void _getDeleteRowSQLParameters()
- protected void _getInsertRowSQL()
- protected void _getInsertRowSQLParameters()
- protected void _getUpdateRowSQL()
- protected void _getDeleteSQL()
- protected void _getDeleteSQLParameters()
- public void count()
- public ArrayCollection slice()
- public boolean contains()
- public boolean removeElement()
- // 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
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
protected
- _getDeleteRowSQL() — Generates the SQL UPDATE that updates a particular row's foreign key to null.
- _getDeleteRowSQLParameters() — {@inheritdoc}
- _getDeleteSQL() — Generates the SQL UPDATE that updates all the foreign keys to null.
- _getDeleteSQLParameters() — Gets the SQL parameters for the corresponding SQL statement to delete the given collection.
- _getInsertRowSQL()
- _getInsertRowSQLParameters() — Gets the SQL parameters for the corresponding SQL statement to insert the given element of the given collection into the database.
- _getUpdateRowSQL()
public
- contains()
- count() — {@inheritdoc}
- removeElement()
- slice()
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.