Advertisement
salientdigital

KO3 ORM Relationships

Dec 27th, 2010
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. class Model_Adplacement extends ORM {
  2.  
  3.     protected $_belongs_to = array(
  4.         'adlocation' => array(),
  5.         'adunit'     => array(),
  6.         'publisher'  => array('model'=>'publisher', 'through'=>'publishers_users'),
  7.     );
  8.  
  9.     // more stuff
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement