private function loadReferenceManyCollectionInverseSide(PersistentCollectionInterface $collection)
    {
        $query     = $this->createReferenceInverseSideQuery($collection->getMapping(), $collection->getOwner());
        $documents = $query->execute()->toArray();

        foreach ($documents as $key => $document) {
            $collection->add($document);
        }
    }
private function loadReferenceManyCollectionInverseSide(PersistentCollectionInterface $collection)
    {
        $query     = $this->createReferenceInverseSideQuery($collection->getMapping(), $collection->getOwner());
        $documents = $query->execute()->toArray();

        foreach ($documents as $key => $document) {
            $collection->add($document);
        }
    }
private function loadReferenceManyCollectionInverseSide ( PersistentCollectionInterface $ collection ) { $ query = $ this -> createReferenceInverseSideQuery ( $ collection -> getMapping ( ) , $ collection -> getOwner ( ) ) ; $ documents = $ query -> execute ( ) -> toArray ( ) ; foreach ( $ documents as $ key => $ document ) { $ collection -> add ( $ document ) ; } }
Populate an inverse-side ReferenceMany association.

@param PersistentCollectionInterface $collection

@return void
Populate an inverse - side ReferenceMany association .