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

namespace Documents;

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

    /**
     * @ReferenceOne(discriminatorMap={
     * "server"="Server",
     * "server_guest"="GuestServer"
     * })
     */
    public $server;
}
Return current item: MongoDB Object Document Mapper