Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Embedded entities #149

Open
itcreator opened this issue Jun 15, 2018 · 1 comment
Open

Embedded entities #149

itcreator opened this issue Jun 15, 2018 · 1 comment
Assignees

Comments

@itcreator
Copy link

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?

@Ocramius
Copy link
Member

Ocramius commented Jun 15, 2018

@Ocramius Ocramius self-assigned this Jun 15, 2018
@Ocramius Ocramius reopened this Jun 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants