New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML mapping for Doctrine MongoDB ODM References Extension #9

Open
webdevilopers opened this Issue May 3, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@webdevilopers
Owner

webdevilopers commented May 3, 2016

Coming from:

I never got it working on the Document side - don't know if the XML mapping is complete anyway:

http://atlantic18.github.io/DoctrineExtensions/schemas/orm/doctrine-extensions-3.0.xsd


namespace Acme\AppBundle\Entity;

class Customer
{
    /**
     * @Gedmo\ReferenceMany(type="document", class="Acme\DomainModel\Order", mappedBy="customer")
     */
    private $orders;
}
        <field fieldName="customerId" type="integer" />
        <gedmo:reference type="entity"
             class="Acme\AppBundle\Entity\Customer"
             inversed-by="orders" identifier="customerId" />

namespace Acme\DomainModel;

class Order
{
    private $customer;
    private $customerId;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment