Giter VIP home page Giter VIP logo

Comments (6)

stof avatar stof commented on June 10, 2024

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.

scourgen avatar scourgen commented on June 10, 2024

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.

jmikola avatar jmikola commented on June 10, 2024

@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.

scourgen avatar scourgen commented on June 10, 2024

@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.

jmikola avatar jmikola commented on June 10, 2024

See my comment in #79. I don't believe the class you're referring to actually exists.

from doctrinemongodbbundle.

scourgen avatar scourgen commented on June 10, 2024

Dear @jmikola I have reply on #79,please have a look,thanks.

from doctrinemongodbbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.