TableBugs.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Db
  17. * @subpackage UnitTests
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @see Zend_Db_Table_Abstract
  24. */
  25. require_once 'Zend/Db/Table/Abstract.php';
  26. /**
  27. * require other test files needed, this will
  28. * ensure that Zend_Loader::loadClass is not called
  29. */
  30. require_once 'TableBugsProducts.php';
  31. require_once 'TableAccounts.php';
  32. /**
  33. * @category Zend
  34. * @package Zend_Db
  35. * @subpackage UnitTests
  36. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  37. * @license http://framework.zend.com/license/new-bsd New BSD License
  38. */
  39. class My_ZendDbTable_TableBugs extends Zend_Db_Table_Abstract
  40. {
  41. protected $_name = 'zfbugs';
  42. protected $_primary = 'bug_id'; // Deliberate non-array value
  43. protected $_dependentTables = array('My_ZendDbTable_TableBugsProducts');
  44. protected $_referenceMap = array(
  45. 'Reporter' => array(
  46. 'columns' => array('reported_by'),
  47. 'refTableClass' => 'My_ZendDbTable_TableAccounts',
  48. 'refColumns' => array('account_name')
  49. ),
  50. 'Engineer' => array(
  51. 'columns' => array('assigned_to'),
  52. 'refTableClass' => 'My_ZendDbTable_TableAccounts',
  53. 'refColumns' => array('account_name')
  54. ),
  55. 'Verifier' => array(
  56. 'columns' => array('verified_by'),
  57. 'refTableClass' => 'My_ZendDbTable_TableAccounts',
  58. 'refColumns' => array('account_name')
  59. )
  60. );
  61. }