Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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;
- }
Add Comment
Please, Sign In to add comment