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