Doctrine


Doctrine\ORM\Persisters\AbstractCollectionPersister
/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 31

Class AbstractCollectionPersister

AbstractCollectionPersister

public abstract class AbstractCollectionPersister

Base class for all collection persisters.

Since:
2.0
Author:
Roman Borschel

Field Summary
protected Doctrine\DBAL\Connection

$_conn

protected EntityManager

$_em

protected Doctrine\ORM\UnitOfWork

$_uow

Constructor Summary

AbstractCollectionPersister(Doctrine\ORM\EntityManager em)

Initializes a new instance of a class derived from AbstractCollectionPersister.

Method Summary
void

delete(PersistentCollection coll)

Deletes the persistent state represented by the given collection.

void

deleteRows(mixed coll)

void

insertRows(mixed coll)

void

update(PersistentCollection coll)

Updates the given collection, synchronizing it's state with the database by inserting, updating and deleting individual elements.

Field Detail

/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 41

_conn

protected Doctrine\DBAL\Connection $_conn


/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 36

_em

protected EntityManager $_em


/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 46

_uow

protected Doctrine\ORM\UnitOfWork $_uow


Constructor Detail

/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 53

AbstractCollectionPersister

public AbstractCollectionPersister(Doctrine\ORM\EntityManager em)

Initializes a new instance of a class derived from AbstractCollectionPersister.


Method Detail

/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 65

delete

public void delete(PersistentCollection coll)

Deletes the persistent state represented by the given collection.


/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 105

deleteRows

public void deleteRows(mixed coll)

/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 117

insertRows

public void insertRows(mixed coll)

/Doctrine/ORM/Persisters/AbstractCollectionPersister.php at line 95

update

public void update(PersistentCollection coll)

Updates the given collection, synchronizing it's state with the database by inserting, updating and deleting individual elements.


Doctrine