/** * @return \yii\db\ActiveQuery */ public function getApptopictures() { return $this->hasMany(Apptopicture::className(), ['appid' => 'id']); }