public static createFromCollection ( Doctrine\ODM\PHPCR\DocumentManagerInterface $dm, object $document, string $property, array | Doctrine\Common\Collections\Collection $collection, string $targetDocument, boolean $forceOverwrite = false ) : |
||
$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 |
Résultat |