Class Doctrine\ORM\PersistentCollection

<TKey is array-key, T>

final
extends AbstractLazyCollection<TKey, T>
implements Selectable<TKey, T>

A PersistentCollection represents a collection of elements that have persistent state.

Collections of entities represent only the associations (links) to those entities. That means, if the collection is part of a many-many mapping and you remove entities from the collection, only the links in the relation table are removed (on flush). Similarly, if you remove entities from a collection that is part of a one-many mapping this will only result in the nulling out of the foreign keys on flush.

Methods
Methods inherited from Doctrine\Common\Collections\AbstractLazyCollection
getKeys(), getValues(), toArray(), first(), last(), key(), current(), next(), exists(), findFirst(), filter(), forAll(), map(), reduce(), partition(), indexOf(), getIterator(), isInitialized(),
Properties
Properties inherited from Doctrine\Common\Collections\AbstractLazyCollection
$collection, $initialized