Created
June 5, 2011 10:31
-
-
Save ThePixelDeveloper/1008854 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 defined('SYSPATH') or die('No direct script access.'); | |
class Model_Day extends ORM { | |
protected $_table_columns = array( | |
'day' => array('data_type' => 'date', 'is_nullable' => FALSE), | |
'max_events' => array('data_type' => 'int', 'is_nullable' => FALSE, 'default' => 10), | |
); | |
protected $_primary_key = 'day'; | |
protected $_has_many = array( | |
'event_start_day' => array('model' => 'event', 'far_key' => 'starting_day'), | |
'event_end_day' => array('model' => 'event', 'far_key' => 'ending_day'), | |
'event_until' => array('model' => 'event', 'far_key' => 'opened_until'), | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment