PHP 클래스 Doctrine\ODM\PHPCR\ReferenceManyCollection

This class stores all documents or their proxies referenced by a reference many property
상속: extends Doctrine\ODM\PHPCR\PersistentCollection
파일 보기 프로젝트 열기: doctrine/phpcr-odm 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Doctrine\ODM\PHPCR\DocumentManagerInterface $dm, object $document, string $property, array $referencedNodes, string $targetDocument, string $locale = null, string $referenceType = self::REFERENCE_TYPE_UUID ) Creates a new persistent collection.
count ( ) {@inheritDoc}
createFromCollection ( Doctrine\ODM\PHPCR\DocumentManagerInterface $dm, object $document, string $property, array | Doctrine\Common\Collections\Collection $collection, string $targetDocument, boolean $forceOverwrite = false ) : ReferenceManyCollection
getOriginalPaths ( ) : array Return the ordered list of references that existed when the collection was initialized
initialize ( ) Initializes the collection by loading its contents from the database if the collection is not yet initialized.
isEmpty ( ) {@inheritDoc}
refresh ( ) {@inheritDoc}
takeSnapshot ( ) Reset original reference paths and mark the collection as non dirty

메소드 상세

__construct() 공개 메소드

Creates a new persistent collection.
public __construct ( Doctrine\ODM\PHPCR\DocumentManagerInterface $dm, object $document, string $property, array $referencedNodes, string $targetDocument, string $locale = null, string $referenceType = self::REFERENCE_TYPE_UUID )
$dm Doctrine\ODM\PHPCR\DocumentManagerInterface The DocumentManager the collection will be associated with.
$document object The document with the references property
$property string The node property name with the multivalued references
$referencedNodes array An array of referenced nodes (UUID or path)
$targetDocument string The class name of the target documents
$locale string The locale to use during the loading of this collection
$referenceType string Identifiers used for reference nodes in this collection, either path or default uuid

count() 공개 메소드

{@inheritDoc}
public count ( )

createFromCollection() 공개 정적인 메소드

public static createFromCollection ( Doctrine\ODM\PHPCR\DocumentManagerInterface $dm, object $document, string $property, array | Doctrine\Common\Collections\Collection $collection, string $targetDocument, boolean $forceOverwrite = false ) : ReferenceManyCollection
$dm Doctrine\ODM\PHPCR\DocumentManagerInterface The DocumentManager the collection will be associated with.
$document object The document with the references property
$property string The node property name with the multivalued references
$collection array | Doctrine\Common\Collections\Collection The collection to initialize with
$targetDocument string The class name of the target documents
$forceOverwrite boolean If to force the database to be forced to the state of the collection
리턴 ReferenceManyCollection

getOriginalPaths() 공개 메소드

Return the ordered list of references that existed when the collection was initialized
public getOriginalPaths ( ) : array
리턴 array

initialize() 공개 메소드

Initializes the collection by loading its contents from the database if the collection is not yet initialized.
public initialize ( )

isEmpty() 공개 메소드

{@inheritDoc}
public isEmpty ( )

refresh() 공개 메소드

{@inheritDoc}
public refresh ( )

takeSnapshot() 공개 메소드

Reset original reference paths and mark the collection as non dirty
public takeSnapshot ( )