* @property Address[] $addresses * @property Phone[] $phones */ public function relations() { // NOTE: you may need to adjust the relation name and the related // class name for the relations automatically generated below. return array( 'addresses' => array(self::HAS_MANY, 'Address', 'user_id'), 'phones' => array(self::HAS_MANY, 'Phone', 'user_id'), ); }
Page 1 of 1
One Veiw With All Relationd
#1
Posted 12 January 2014 - 01:38 AM
I have 3 tables user, address and phone. They are related in the database. 1 user could have multible adress enteries and phone entries. Is there a way to display all the user information on 1page but no other user info
Share this topic:
Page 1 of 1