Club.php 592 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Club Model
  4. *
  5. * @package MicroMVC
  6. * @author David Pennington
  7. * @copyright (c) 2011 MicroMVC Framework
  8. * @license http://micromvc.com/license
  9. ********************************** 80 Columns *********************************
  10. */
  11. namespace Model;
  12. class Club extends \Micro\ORM
  13. {
  14. public static $table = 'club';
  15. public static $foreign_key = 'club_id';
  16. public static $has = array(
  17. 'memberships' => '\Model\Membership'
  18. );
  19. public static $has_many_through = array(
  20. 'students' => array(
  21. 'club_id' => '\Model\Membership',
  22. 'student_id' => '\Model\Student'
  23. ),
  24. );
  25. }