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

namespace Documents\Functional;

/**
 * @Document(collection="same_collection")
 * @DiscriminatorField(fieldName="type")
 * @DiscriminatorMap({"test1"="Documents\Functional\SameCollection1", "test2"="Documents\Functional\SameCollection2"})
 */
class SameCollection2
{
    /** @Id */
    public $id;

    /** @String */
    public $name;

    /** @String */
    public $ok;

    /** @String */
    public $w00t;
}
Return current item: MongoDB Object Document Mapper