Beispiel #1
0
 /**
  * undocumented function
  *
  * @return void
  * @author
  **/
 public function getPoll()
 {
     return $this->hasOne(Poll::className(), ['poll_type_id' => 'poll_type_id'])->inverseOf('type');
 }
Beispiel #2
0
 /**
  * 与投票表的关系
  */
 public function getPoll()
 {
     return $this->hasOne(Poll::className(), ['poll_id' => 'poll_id']);
 }