Guest User

Untitled

a guest
Dec 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #Acme\StudyBundle\Entity\User.php
  2.  
  3.  
  4. namespace Acme\StudyBundle\Entity;
  5. /**
  6. * Acme\StudyBundle\Entity\User
  7. *
  8. * @orm:Table(name="users")
  9. * @orm:Entity
  10. */
  11. class User
  12. {
  13. /**
  14. * @orm:Id
  15. * @orm:Column(name="id", type="integer")
  16. * @orm:GeneratedValue(strategy="AUTO")
  17. */
  18. protected $id;
  19.  
  20. /**
  21. * @orm:Column(type="string", length="255")
  22. */
  23. protected $name;
  24. }
  25.  
  26. #app/config/config.yml
  27. # Doctrine Configuration
  28. doctrine:
  29. dbal:
  30. driver: %database_driver%
  31. host: %database_host%
  32. dbname: %database_name%
  33. user: %database_user%
  34. password: %database_password%
  35.  
  36. orm:
  37. auto_generate_proxy_classes: %kernel.debug%
  38. auto_mapping: true
Add Comment
Please, Sign In to add comment