doctrine / couchdb-odm

A Document Mapper based on CouchDB

Home Page:http://www.doctrine-project.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embedded entities

itcreator opened this issue · comments

Hello
I have a question about couchdb-odm
Is it possible to make embedded entities like doctrine-orm?

/** @Entity */
class User
{
    /** @Embedded(class = "Address") */
    private $address;
}

/** @Embeddable */
class Address
{
    /** @Column(type = "string") */
    private $street;

    /** @Column(type = "string") */
    private $postalCode;

    /** @Column(type = "string") */
    private $city;

    /** @Column(type = "string") */
    private $country;
}

If yes could you provide an example?