Entity.RoleUser.dcm.yml 538 B

12345678910111213141516171819202122232425262728
  1. Entity\RoleUser:
  2. type: entity
  3. table: c_role_user
  4. repositoryClass: Entity\Repository\RoleUserRepository
  5. fields:
  6. c_id:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. role_id:
  12. id: true
  13. type: integer
  14. unsigned: false
  15. nullable: false
  16. user_id:
  17. id: true
  18. type: integer
  19. unsigned: false
  20. nullable: false
  21. scope:
  22. type: string
  23. length: 20
  24. fixed: false
  25. nullable: false
  26. lifecycleCallbacks:
  27. prePersist:
  28. - before_save