Пример #1
0
 public function getCommentInfo()
 {
     return $this->owner->hasOne(CommentInfo::className(), ['entity_id' => $this->owner->primaryKey()[0]])->where(["entity" => $this->getEntityClass()]);
 }