Advertisement
Guest User

Untitled

a guest
May 7th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. class Model_File extends \Orm\Model
  2. {
  3.     protected static $_properties = array(
  4.         'id',
  5.         'path',
  6.         'created_at',
  7.         'updated_at',
  8.         'source_id'
  9.     );
  10.        
  11.         protected static $_has_one = array(
  12.             'movie',
  13.         );
  14. }
  15.  
  16. class Model_Movie extends \Orm\Model
  17. {
  18.     protected static $_properties = array(
  19.         'id',
  20.         'title',
  21.         'plot',
  22.         'plotsummary',
  23.         'tagline',
  24.         'rating',
  25.         'votes',
  26.         'released',
  27.         'runtime',
  28.         'runtime_file',
  29.         'contentrating',
  30.         'originaltitle',
  31.         'thumb',
  32.         'fanart',
  33.         'trailer_url',
  34.         'created_at',
  35.         'updated_at',
  36.         'file_id',
  37.     );
  38.     protected static $_belongs_to = array(
  39.         'file',
  40.     );
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement