Created
September 26, 2011 20:10
-
-
Save fabriziomachado/1243266 to your computer and use it in GitHub Desktop.
application/models/Student.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Student extends Person { | |
static $primary_key = 'id'; | |
static $has_many = array(array('enrollments')); | |
public function __construct(array $attributes = array()) { | |
parent::__construct(array_merge($attributes,array('type'=> __CLASS__ ))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment