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

namespace Documents\Functional;

/** @Document(collection="embedded_test") */
class EmbeddedTestLevel0
{
    /** @Id */
    public $id;
    /** @String */
    public $name;
    /** @EmbedMany(targetDocument="EmbeddedTestLevel1") */
    public $level1 = array();
}
Return current item: MongoDB Object Document Mapper