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

namespace Documents;

/** @Document(db="my_db", collection="employees") */
class Employee extends BaseEmployee
{
    /** @ReferenceOne(targetDocument="Documents\Manager") */
    private $manager;

    public function getManager()
    {
        return $this->manager;
    }

    public function setManager($val)
    {
        $this->manager = $val;
        return $this;
    }
}
Return current item: MongoDB Object Document Mapper