public function getArticles() { return $this->hasMany(MArticle::className(), ['photo_id' => 'photo_id']); }
public function getArticle() { return $this->hasOne(MArticle::className(), ['article_id' => 'article_id']); }