/** * @return \yii\db\ActiveQuery */ public function getPic() { return $this->hasOne(Pic::className(), ['id' => 'pic_id']); }