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