Comments (6)
it is not an error: it simply tells you that the mapping does not use a custom repository class for this document and so the class is skipped as there is nothing to do for it
from doctrinemongodbbundle.
Hi,Stof
I know the problem looks stupid,but what I did is following the guide,May be the guide is out of date?
btw,Could you tell me how to use a custom repository class fot document with mongodb bundle?
Seems like there are not a lot of information on the web about it. thanks anyway
from doctrinemongodbbundle.
@scourgen: The reference for specifying a repository class is in Doctrine's own documentation. See: http://readthedocs.org/docs/doctrine-mongodb-odm/en/latest/reference/annotations-reference.html?highlight=annotations#document
Whether you use ORM or ODM, you should expect to refer to Doctrine's documentation in addition to any Symfony2-specific tutorials you may be reading.
from doctrinemongodbbundle.
@jmikola : thanks for your help.
actually I have set the repository class for the document like following code:
<?php
namespace Acme\DemoBundle\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
/**
* @MongoDB\Document(repositoryClass="Acme\DemoBundle\Repository\ProductRepository")
*/
class Product
{
/**
* @MongoDB\Id
*/
protected $id;
Do you have any other idea of that?
from doctrinemongodbbundle.
See my comment in #79. I don't believe the class you're referring to actually exists.
from doctrinemongodbbundle.
Dear @jmikola I have reply on #79,please have a look,thanks.
from doctrinemongodbbundle.
Related Issues (20)
- How to pass driver_option "autoEncryption" to MongoDB\Client HOT 2
- Doctrine ODM query for $lookup with let/pipeline HOT 1
- mkdir() race condition in cache warmers HOT 1
- Feature request: Implement a DocumentType or MongoDocumentType Field à la EntityType field HOT 2
- Move and extend Symfony 6.2 #[MapEntity] to support ODM as well HOT 7
- Make attributes the default mapping type
- Leverage pinned resolvers
- Registry constructor expected ManagerRegistry found DocumentManager HOT 5
- Require PHP 8.1
- Add functional test for UniqueDocument
- Add configuration example with `PHP` format
- Move internal Container configuration from XML to PHP HOT 1
- Fix symfony 6.4/7.0 deprecations HOT 3
- Find deprecated code HOT 2
- Deprecated EventSubscriberInterface, use AsDoctrineListener HOT 4
- Non-existent service after fresh installation on branch 5.0.x HOT 7
- [Bug] - Default value for dm option in all commands HOT 3
- AsDocumentListener attribute listeners are not called for fixtures HOT 2
- Documentation link in README is broken HOT 2
- Configuration with non bundled mapping and xml mapping is broken in 5.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctrinemongodbbundle.