Entity.PhpSession.dcm.yml 651 B

1234567891011121314151617181920212223242526272829303132
  1. Entity\PhpSession:
  2. type: entity
  3. table: php_session
  4. repositoryClass: Entity\Repository\PhpSessionRepository
  5. fields:
  6. session_id:
  7. id: true
  8. type: string
  9. length: 32
  10. fixed: false
  11. nullable: false
  12. generator:
  13. strategy: IDENTITY
  14. session_name:
  15. type: string
  16. length: 10
  17. fixed: false
  18. nullable: false
  19. session_time:
  20. type: integer
  21. unsigned: false
  22. nullable: false
  23. session_start:
  24. type: integer
  25. unsigned: false
  26. nullable: false
  27. session_value:
  28. type: text
  29. nullable: false
  30. lifecycleCallbacks:
  31. prePersist:
  32. - before_save