Roman
0
Q:

doctrine mongodb native query

/** @var DocumentManager $documentManager */
$documentManager = $this->container
	->get('doctrine_mongodb')
	->getManager();

$mongoClient = $documentManager->getConnection()->getMongoClient();

$db = $mongoClient->selectDB('dbname');

$collection = $mongoClient->selectCollection($db, 'collectionName');
$results = $collection->find();
1

New to Communities?

Join the community