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

namespace Documents;

/**
 * @MappedSuperclass
 * @Indexes({
 *   @Index(keys={"slug"="asc"}, options={"unique"="true"})
 * })
 */
abstract class CmsPage
{
    /**
     * @Id
     */
    public $id;

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