예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getActor()
 {
     return $this->hasOne(Actor::className(), ['id' => 'actorid']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getActors()
 {
     return $this->hasMany(Actor::className(), ['personaid' => 'id']);
 }