예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdautor0()
 {
     return $this->hasOne(Autores::className(), ['id' => 'idautor']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAutores()
 {
     return $this->hasMany(Autores::className(), ['idpais' => 'id']);
 }