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

namespace Documents;

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

    /** @Collection(strategy="set") */
    public $logs = array();

    /** @EmbedMany(targetDocument="Message", strategy="set") */
    public $messages = array();

    /** @ReferenceMany(targetDocument="Task", strategy="set") */
    public $tasks = array();
}
Return current item: MongoDB Object Document Mapper