Skip to content

Instantly share code, notes, and snippets.

@caefer
Created August 23, 2011 19:10
Show Gist options
  • Select an option

  • Save caefer/1166176 to your computer and use it in GitHub Desktop.

Select an option

Save caefer/1166176 to your computer and use it in GitHub Desktop.
<?php
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
/**
* @ODM\Document
*/
class Product
{
/**
* @ODM\Id
*/
protected $id;
/**
* @ODM\String @ODM\Index(unique=true, order="asc")
*/
protected $name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment