Advertisement
Guest User

Untitled

a guest
May 5th, 2017
634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. # config/doctrine/schema.yml
  2. Organization:
  3. actAs: { Timestampable: ~ }
  4. columns:
  5. sf_guard_user_id: { type: integer(4) }
  6. name: { type: string(255), notnull: true, unique: true }
  7. first_name: { type: string(255) }
  8. last_name: { type: string(255), notnull: true }
  9. phone: { type: string(20) }
  10. mobile: { type: string(20) }
  11. email: { type: string(255), notnull: true }
  12. logo: { type: string(255) }
  13. is_active: { type: boolean, notnull: true, default: 1 }
  14. relations:
  15. sfGuardUser:
  16. foreign: id
  17. local: sf_guard_user_id
  18.  
  19. AddressBook:
  20. actAs: { Timestampable: ~ }
  21. columns:
  22. organization_id: { type: integer, notnull: true }
  23. first_name: { type: string(255) }
  24. last_name: { type: string(255), notnull: true }
  25. mobile: { type: string(20) }
  26. email: { type: string(255) }
  27. is_active: { type: boolean, notnull: true, default: 1 }
  28. relations:
  29. Organization: { onDelete: CASCADE, local: organization_id, foreign: id, foreignAlias: AddressBooks }
  30.  
  31.  
  32. #Heres a definition of the fields:
  33. # -organization_id CustomerNickname This is NICKNAME part of the message, represents customer identification string created during customer registration.
  34. # -keyword Keyword KEYWORD part of the message.
  35. # -message_option Option OPTION part of the message
  36. # -data Data DATA part of the message
  37. # -message_content Message The whole message as received by CellTrust
  38. # -response_type ResponseType Can have two possible values:
  39. # NORMAL � if the message was identified as belonging to specific campaign;
  40. # UNKNOWN � if provided KEYWORD or OPTION parts are unknown to the system
  41. # -msg_from OriginatorAddress Sender address � cell phone number in case of SMS message, or email address in case of Email message
  42. # -received_at AcceptedTime Time when the message was received by CellTrust platform
  43. # -delivery_type DeliveryType Can have two possible values: SMS or Email
  44. # -carrier Carrier For SMS only: short name for the carrier that the cell phone number belongs to.
  45. # -network_type NetworkType For SMS only: carrier network type, can be one of �gsm�, �cdma�, tdma�, �iden�
  46.  
  47. MessageQueue:
  48. actAs: { Timestampable: ~ }
  49. columns:
  50. organization_id: { type: integer, notnull: true }
  51. address_book_id: { type: integer, notnull: false }
  52. msg_from: { type: string(255) }
  53. msg_to: { type: string(255) }
  54. message_content: { type: string(255) }
  55. status:
  56. type: enum
  57. values: [Pending,Delivered,Processed,Failed]
  58. notnull: true
  59. result_code: { type: string(255) }
  60. direction:
  61. type: enum
  62. values: [Inbound,Outbound]
  63. notnull: true
  64. keyword: { type: string(20) }
  65. message_option: { type: string(255) }
  66. data: { type: string(255) }
  67. response_type:
  68. type: enum
  69. values: [NORMAL,UNKNOWN]
  70. notnull: false
  71. delivery_type:
  72. type: enum
  73. values: [SMS,Email]
  74. carrier: { type: string(100) }
  75. network_type:
  76. type: enum
  77. values: [gsm,cdma,tdma,iden]
  78. notnull: false
  79. received_at: { type: timestamp, notnull: false }
  80. relations:
  81. Organization: { local: organization_id, foreign: id }
  82. AddressBook: { local: address_book_id, foreign: id }
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89. ======================
  90.  
  91. fixture
  92.  
  93.  
  94. sfGuardUser:
  95. sgu_admin:
  96. username: admin
  97. password: admin
  98. is_super_admin: true
  99. Organization:
  100. name: ZizzerDog
  101. first_name: Samuel
  102. last_name: Morhaim
  103. phone: 7865478199
  104. mobile: 7865478189
  105.  
  106. sgu_client:
  107. username: smorhaim
  108. password: wqt123
  109. is_super_admin: false
  110. Organization:
  111. name: SMLPro LLC
  112. first_name: Samuelito
  113. last_name: Lipovich
  114. phone: 7865478199
  115. mobile: 7865478189
  116.  
  117. sfGuardPermission:
  118. sgp_admin:
  119. name: admin
  120. description: Administrator permission
  121.  
  122. sgp_client:
  123. name: client
  124. description: Regular Client permission
  125.  
  126. sfGuardGroup:
  127. sgg_admin:
  128. name: admin
  129. description: Administrator group
  130.  
  131. sgg_client:
  132. name: client
  133. description: Client group
  134.  
  135. sfGuardGroupPermission:
  136. sggp_admin:
  137. sfGuardGroup: sgg_admin
  138. sfGuardPermission: sgp_admin
  139.  
  140. sggp_client:
  141. sfGuardGroup: sgg_client
  142. sfGuardPermission: sgp_client
  143.  
  144. sfGuardUserGroup:
  145. sgug_admin:
  146. sfGuardGroup: sgg_admin
  147. sfGuardUser: sgu_admin
  148.  
  149. sgug_client:
  150. sfGuardGroup: sgg_client
  151. sfGuardUser: sgu_client
  152.  
  153.  
  154. ============
  155.  
  156. error
  157.  
  158.  
  159. Unknown record property / related component "0" on "Organization"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement