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?
Sorry, misread the question :-\