Entity.UserRelUser.dcm.yml 594 B

1234567891011121314151617181920212223242526272829
  1. Entity\UserRelUser:
  2. type: entity
  3. table: user_rel_user
  4. repositoryClass: Entity\Repository\UserRelUserRepository
  5. fields:
  6. id:
  7. id: true
  8. type: bigint
  9. nullable: false
  10. generator:
  11. strategy: IDENTITY
  12. user_id:
  13. type: integer
  14. unsigned: false
  15. nullable: false
  16. friend_user_id:
  17. type: integer
  18. unsigned: false
  19. nullable: false
  20. relation_type:
  21. type: integer
  22. unsigned: false
  23. nullable: false
  24. last_edit:
  25. type: datetime
  26. nullable: true
  27. lifecycleCallbacks:
  28. prePersist:
  29. - before_save