Méthode |
Description |
|
__construct ( Doctrine\Common\Collections\Collection $coll, DocumentManager $dm, Configuration $c ) |
|
|
__sleep ( ) |
Called by PHP when this collection is serialized. Ensures that only the
elements are properly serialized. |
|
add ( $value ) |
|
|
clear ( ) |
|
|
clearSnapshot ( ) |
INTERNAL:
Clears the internal snapshot information and sets isDirty to true if the collection
has elements. |
|
contains ( $element ) |
|
|
containsKey ( $key ) |
|
|
count ( ) |
|
|
current ( ) |
Gets the element of the collection at the current iterator position. |
|
exists ( Closure $p ) |
|
|
filter ( Closure $p ) |
|
|
first ( ) |
|
|
forAll ( Closure $p ) |
|
|
get ( $key ) |
|
|
getDeleteDiff ( ) : array |
INTERNAL:
getDeleteDiff |
|
getInsertDiff ( ) : array |
INTERNAL:
getInsertDiff |
|
getIterator ( ) |
|
|
getKeys ( ) |
|
|
getMapping ( ) |
|
|
getOwner ( ) : object |
INTERNAL:
Gets the collection owner. |
|
getReferences ( ) |
|
|
getSnapshot ( ) : array |
INTERNAL:
Returns the last snapshot of the elements in the collection. |
|
getTypeClass ( ) |
|
|
getValues ( ) |
|
|
indexOf ( $element ) |
|
|
initialize ( ) |
Initializes the collection by loading its contents from the database
if the collection is not yet initialized. |
|
isDirty ( ) : boolean |
Gets a boolean flag indicating whether this collection is dirty which means
its state needs to be synchronized with the database. |
|
isEmpty ( ) |
|
|
isInitialized ( ) : boolean |
Checks whether this collection has been initialized. |
|
key ( ) |
|
|
last ( ) |
|
|
map ( Closure $func ) |
|
|
next ( ) |
Moves the internal iterator position to the next element. |
|
offsetExists ( $offset ) |
|
|
offsetGet ( $offset ) |
|
|
offsetSet ( $offset, $value ) |
|
|
offsetUnset ( $offset ) |
|
|
partition ( Closure $p ) |
|
|
remove ( $key ) |
|
|
removeElement ( $element ) |
|
|
set ( $key, $value ) |
|
|
setDirty ( boolean $dirty ) |
Sets a boolean flag, indicating whether this collection is dirty. |
|
setInitialized ( boolean $bool ) |
Sets the initialized flag of the collection, forcing it into that state. |
|
setOwner ( object $document, array $mapping ) |
INTERNAL:
Sets the collection's owning entity together with the AssociationMapping that
describes the association between the owner and the elements of the collection. |
|
setReferences ( array $references ) |
Set the array of mongo database references to be used to initialize this collection. |
|
slice ( $offset, $length = null ) |
|
|
takeSnapshot ( ) |
INTERNAL:
Tells this collection to take a snapshot of its current state. |
|
toArray ( ) |
|
|
unwrap ( ) |
Retrieves the wrapped Collection instance. |
|