title: Yii multi database relations
body: <p>I have 2 databases.</p>
  
  <p>db1 and db2. I defined them in config/main.php file</p>
  
  <p>db1 has table table1  and db2 has table2</p>
  
  <p>table1 has a column which is primary key of table2</p>
  
  <p>How do I define relations in table1?</p>
  
  <p>I did it as usual but it is retrieving data from db1.table2.</p>
  
  <p>Basically I want to link db1.table1 and db2.table2</p>