Created
March 31, 2015 23:31
-
-
Save anonymous/3eef732bb09597fd7bde to your computer and use it in GitHub Desktop.
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 | |
namespace Model; | |
class Trip_Category extends \Orm\Model { | |
protected static $_table_name = 'trip_categories'; | |
protected static $_belongs_to = array( | |
'trips' => array( | |
'key_from' => 'id', | |
'model_to' => '\Model\Trip', | |
'key_to' => 'category_id', | |
) | |
); | |
protected static $_properties = array( | |
'id', | |
'title' | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment