Category : doctrine-odm

So, I have a project that uses Doctrine (doctrine/mongodb-odm version 2.2.0 with mongodb/mongodb version 1.4.3), it runs on Debian Buster (php-mongodb version 1.5.3-2). At some point in my application, I find and modify a document using query builder’s findAndUpdate() method which is returned without problem : $this->createQueryBuilder() ->findAndUpdate() ->returnNew() ->field(‘someField’) ->set(‘someValue’) ->getQuery() ->execute() and just ..

Read more

for many hours I am searching for a solution for following bug: I want to perform a payment with a gateway (stripe and paypal + offline for testing) but everytime I want to open the capture link I get following exception: Request Capture{model: Identity} is not supported. Make sure the storage extension for "Proxies_CG_AppEntityPayment" is ..

Read more

Sorry for my english. I seem to be missing something in the work of doctrine with mongo. I have /** * @MongoDBMappedSuperclass * @MongoDBDiscriminatorField("type") * @MongoDBDiscriminatorMap({ * "hotel"="AppDocumentAttributesHotelAttributes", * "apartment"="AppDocumentAttributesApartmentAttributes", */ abstract class AbstractAttribute { /** * @MongoDBId * @MongoDBUniqueIndex() */ protected string $id; … } And several classes of descendants, like: namespace AppDocumentAttributes; use ..

Read more

I using "doctrine/mongodb-odm-bundle": "^4.2", "symfony/proxy-manager-bridge": "5.1.*", and when I try reset manager I faced with error about lazy property this my conf doctrine_mongodb: auto_generate_proxy_classes: true auto_generate_hydrator_classes: true default_database: ‘%env(resolve:MONGODB_DB)%’ default_connection: application_conn default_document_manager: application_manager connections: application_conn: server: ‘%env(resolve:MONGODB_URL)%’ options: {} alert_conn: server: ‘%mongodb_server%’ options: username: ‘%env(MONGO_INITDB_ROOT_USERNAME)%’ password: ‘%env(MONGO_INITDB_ROOT_USERNAME)%’ authSource: ‘admin’ document_managers: application_manager: connection: application_conn mappings: App: ..

Read more

I’m working with an api-platform project on PHP 7.4 and MongoDB. I have created a class (Product) with the annotation @ODMDocument. Product has field reviews with the annotation @ODMEmbedMany(targetDocument="AppEntityReview"). Review is a class with annotation @ODMEmbeddedDocument and has properties like title, score, review, and author. Now when I add GraphQL support, it does not see ..

Read more

I have 2 collections namely report_conversations and chatmessages in the same db. There is a common field in both collections and I somehow been trying to use aggregiationBuilder->lookup() and attach documents into each other after that pipeline. However, this left joined collection comes as an Array and I need to be scattered some of its ..

Read more

I am having an issue with an model while the others works succesfully. I get this error: Type: DoctrineCommonAnnotationsAnnotationException Code: 0 Message: [Semantical Error] The annotation "@DoctrineODMMongoDBMappingAnnotationsDocument" in class CAAMEntitiesPayment was never imported. Did you maybe forget to add a "use" statement for this annotation? File: D:xampphtdocscaamvendordoctrineannotationslibDoctrineCommonAnnotationsAnnotationException.php Line: 39 My model is: namespace CAAMEntities; use ..

Read more