Guest User

Untitled

a guest
May 23rd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. ## DB/Build
  2.  
  3. Building Database
  4.  
  5. Creating database tables
  6. # Analytics
  7. # Newsletter
  8. # Newsletter_SentRecipient
  9. # Newsletter_Recipient
  10. # NewsletterType
  11. # PageComment
  12. # Activity
  13. # Booking
  14. # Location
  15.  
  16. Notice: Undefined index: Activities in C:\wamp\www\clients\airsphere\sapphire\core\model\DataObject.php on line 1729
  17.  
  18. ## Code
  19.  
  20. class Location extends DataObject {
  21.  
  22. static $db = array(
  23. 'Name' => "Text",
  24. 'Address' => 'Text',
  25. 'TelNum' => 'Int',
  26. 'Directions' => 'Text',
  27. 'Description' => 'Text',
  28. );
  29.  
  30. static $many_many = array(
  31. 'Activities' => 'Activity',
  32. );
  33.  
  34. static $many_many_extraFields = array(
  35. "Price" => array("FieldName" => "Varchar")
  36. );
Add Comment
Please, Sign In to add comment