12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * Student Model
- *
- * @package MicroMVC
- * @author David Pennington
- * @copyright (c) 2011 MicroMVC Framework
- * @license http://micromvc.com/license
- ********************************** 80 Columns *********************************
- */
- namespace Model;
- class Student extends \Micro\ORM
- {
- public static $table = 'student';
- public static $foreign_key = 'student_id';
- public static $cascade_delete = TRUE;
- public static $has = array(
- 'car' => '\Model\Car',
- 'memberships' => '\Model\Membership'
- );
- public static $belongs_to = array(
- 'dorm' => '\Model\Dorm',
- );
- public static $has_many_through = array(
- 'clubs' => array(
- 'student_id' => '\Model\Membership',
- 'club_id' => '\Model\Club'
- ),
- );
- }
|