FavoriteStores.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ XI55P26SAet3EsxVaMQj0cO0a/ezcehuIZfgM6F6xsA=
  5. *
  6. * @link http://www.phpprobid.com
  7. * @copyright Copyright (c) 2014 Online Ventures Software LTD & CodeCube SRL
  8. * @license http://www.phpprobid.com/license Commercial License
  9. *
  10. * @version 7.0
  11. */
  12. /**
  13. * favorite stores table
  14. */
  15. namespace Ppb\Db\Table;
  16. use Cube\Db\Table\AbstractTable;
  17. class FavoriteStores extends AbstractTable
  18. {
  19. /**
  20. *
  21. * table name
  22. *
  23. * @var string
  24. */
  25. protected $_name = 'favorite_stores';
  26. /**
  27. *
  28. * primary key
  29. *
  30. * @var string
  31. */
  32. protected $_primary = 'id';
  33. /**
  34. *
  35. * reference map
  36. *
  37. * @var array
  38. */
  39. protected $_referenceMap = array(
  40. 'User' => array(
  41. self::COLUMNS => 'user_id',
  42. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Users',
  43. self::REF_COLUMNS => 'id',
  44. ),
  45. 'Store' => array(
  46. self::COLUMNS => 'store_id',
  47. self::REF_TABLE_CLASS => '\Ppb\Db\Table\Users',
  48. self::REF_COLUMNS => 'id',
  49. ),
  50. );
  51. }