Advertisement
Guest User

Untitled

a guest
May 5th, 2017
631
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. email: sammy@zizzerdog.com
  106.  
  107. sgu_client:
  108. username: smorhaim
  109. password: wqt123
  110. is_super_admin: false
  111. Organization:
  112. name: SMLPro LLC
  113. first_name: Samuelito
  114. last_name: Lipovich
  115. phone: 7865478199
  116. mobile: 7865478189
  117. email: samuel.morhaim@gmail.com
  118.  
  119. sfGuardPermission:
  120. sgp_admin:
  121. name: admin
  122. description: Administrator permission
  123.  
  124. sgp_client:
  125. name: client
  126. description: Regular Client permission
  127.  
  128. sfGuardGroup:
  129. sgg_admin:
  130. name: admin
  131. description: Administrator group
  132.  
  133. sgg_client:
  134. name: client
  135. description: Client group
  136.  
  137. sfGuardGroupPermission:
  138. sggp_admin:
  139. sfGuardGroup: sgg_admin
  140. sfGuardPermission: sgp_admin
  141.  
  142. sggp_client:
  143. sfGuardGroup: sgg_client
  144. sfGuardPermission: sgp_client
  145.  
  146. sfGuardUserGroup:
  147. sgug_admin:
  148. sfGuardGroup: sgg_admin
  149. sfGuardUser: sgu_admin
  150.  
  151. sgug_client:
  152. sfGuardGroup: sgg_client
  153. sfGuardUser: sgu_client
  154.  
  155.  
  156. ============
  157.  
  158. error
  159.  
  160.  
  161. Unknown record property / related component "0" on "Organization"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement