Guest User

Untitled

a guest
Jan 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <?php
  2.  
  3. use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
  4.  
  5. /**
  6. * @ODM\Document
  7. */
  8. class Product
  9. {
  10. /**
  11. * @ODM\Id
  12. */
  13. protected $id;
  14.  
  15. /**
  16. * @ODM\String @ODM\Index(unique=true, order="asc")
  17. */
  18. protected $name;
  19. }
Add Comment
Please, Sign In to add comment