Guest User

Untitled

a guest
Jun 22nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * BaseUserGroup
  5. *
  6. * This class has been auto-generated by the Doctrine ORM Framework
  7. *
  8. * @property integer $user_id
  9. * @property integer $group_id
  10. * @property Group $Group
  11. * @property User $User
  12. *
  13. * @package ##PACKAGE##
  14. * @subpackage ##SUBPACKAGE##
  15. * @author ##NAME## <##EMAIL##>
  16. * @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
  17. */
  18. abstract class BaseUserGroup extends Doctrine_Record
  19. {
  20. public function setTableDefinition()
  21. {
  22. $this->setTableName('user_group');
  23. $this->hasColumn('user_id', 'integer', 8, array(
  24. 'type' => 'integer',
  25. 'length' => 8,
  26. 'unsigned' => 0,
  27. 'primary' => true,
  28. 'autoincrement' => false,
  29. ));
  30. $this->hasColumn('group_id', 'integer', 8, array(
  31. 'type' => 'integer',
  32. 'length' => 8,
  33. 'unsigned' => 0,
  34. 'primary' => true,
  35. 'autoincrement' => false,
  36. ));
  37. }
  38.  
  39. public function setUp()
  40. {
  41. $this->hasOne('Group', array(
  42. 'local' => 'group_id',
  43. 'foreign' => 'id'));
  44.  
  45. $this->hasOne('User', array(
  46. 'local' => 'user_id',
  47. 'foreign' => 'id'));
  48. }
  49. }
Add Comment
Please, Sign In to add comment