Advertisement
Guest User

Untitled

a guest
May 8th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2. class Code extends Dataobject {
  3.  
  4. public static $db = array(
  5. 'Sequence' => 'Varchar()'
  6. );
  7. public static $has_one = array(
  8. 'Profile' => 'Profile',
  9. );
  10. }
  11.  
  12.  
  13. class Profile extends DataObject {
  14.  
  15. public static $has_one = array(
  16. 'Code' => 'Code',
  17. 'User' => 'User'
  18. );
  19. }
  20.  
  21.  
  22.  
  23. class User extends Member {
  24. private static $db = array(
  25. "Age" => "Int",
  26. "Address" => "Text",
  27. );
  28.  
  29. public static $has_one = array(
  30. 'Profile' => 'Int'
  31. );
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement