Last active
August 29, 2015 14:17
-
-
Save YuriFontella/81d4c295a5f7905d9857 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 | |
class Model_Ativos extends Orm\Model | |
{ | |
protected static $_properties = array( | |
'id', | |
'user_id', | |
'created_at', | |
); | |
protected static $_table_name = 'ativos'; | |
protected static $_has_many = array( | |
'usuarios' => array( | |
'key_from' => 'user_id', | |
'model_to' => 'Model_Usuarios', | |
'key_to' => 'id' | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment