Guest User

Untitled

a guest
Aug 30th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. How to remove column redundancy from sfDoctrineGuard, sfForkedDoctrineApply, and MyProfile?
  2. MyProfile:
  3. ...
  4. inheritance:
  5. type: column_aggregation
  6. extends: sfGuardUserProfile
  7.  
  8. MyProfile:
  9. columns:
  10. ...
  11. relations:
  12. User:
  13. class: sfGuardUser
  14. local: user_id
  15. foreign: id
  16. type: one
  17. foreignType: one
  18. foreignAlias: Profile
  19. inheritance:
  20. type: column_aggregation
  21. extends: sfGuardUserProfile
  22.  
  23. sfGuardUserProfile:
  24. actAs:
  25. Timestampable: ~
  26. columns:
  27. user_id:
  28. type: integer
  29. notnull: true
  30. unique: true
  31. email_new:
  32. type: string(255)
  33. unique: true
  34. firstname:
  35. type: string(255)
  36. lastname:
  37. type: string(255)
  38. validate_at:
  39. type: timestamp
  40. validate:
  41. type: string(33)
  42. relations:
  43. User:
  44. class: sfGuardUser
  45. foreign: id
  46. local: user_id
  47. type: one
  48. onDelete: cascade
  49. foreignType: one
  50. foreignAlias: Profile
  51. indexes:
  52. validate:
  53. fields: [validate]
  54.  
  55. sfGuardUser:
  56. actAs: [Timestampable]
  57. columns:
  58. first_name: string(255)
  59. last_name: string(255)
  60. email_address:
  61. type: string(255)
  62. notnull: true
  63. unique: true
  64. username:
  65. type: string(128)
  66. notnull: true
  67. unique: true
  68. algorithm:
  69. type: string(128)
  70. default: sha1
  71. notnull: true
  72. salt: string(128)
  73. password: string(128)
  74. is_active:
  75. type: boolean
  76. default: 1
  77. is_super_admin:
  78. type: boolean
  79. default: false
  80. last_login:
  81. type: timestamp
  82. indexes:
  83. is_active_idx:
  84. fields: [is_active]
  85. relations:
  86. ...
Add Comment
Please, Sign In to add comment