Location: PHPKode > projects > MongoDB Object Document Mapper > tests/Documents/Functional/SimpleEmbedAndReference.php
<?php

namespace Documents\Functional;

/** @Document(collection="functional_tests") */
class SimpleEmbedAndReference
{
    /** @Id */
    public $id;

    /** @EmbedMany(targetDocument="Reference") */
    public $embedMany = array();

    /** @ReferenceMany(targetDocument="Embedded") */
    public $referenceMany = array();

    /** @EmbedOne(targetDocument="Reference") */
    public $embedOne;

    /** @ReferenceOne(targetDocument="Embedded") */
    public $referenceOne;
}
Return current item: MongoDB Object Document Mapper