Location: PHPKode > projects > MongoDB Object Document Mapper > tests/Doctrine/ODM/MongoDB/Tests/Mapping/Documents/GlobalNamespaceDocument.php
<?php

/**
 * @Document
 */
class DoctrineGlobal_Article
{
    /**
     * @Id
     */
    protected $id;

    /**
     * @String
     */
    protected $headline;

    /**
     * @String
     */
    protected $text;

    /**
     * @ReferenceMany(targetDocument="DoctrineGlobal_User")
     */
    protected $author;

    /**
     * @ReferenceMany(targetDocument="\DoctrineGlobal_User")
     */
    protected $editor;
}

/**
 * @Document
 */
class DoctrineGlobal_User
{
    /**
     * @Id
     */
    private $id;

    /**
     * @String
     * @var string
     */
    private $username;

    /**
     * @String
     * @var string
     */
    private $email;
}
Return current item: MongoDB Object Document Mapper