255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'pid' => 'Pid', 'site_id' => 'Site ID', 'tm' => 'Tm', 'name' => 'Name', 'comment' => 'Comment', 'vk_id' => 'Vk ID', 'photo' => 'Photo', ]; } public function getComments() { return $this->hasMany(VkComment::className(), ["pid" => "id"])->andWhere(["site_id" => $this->site_id]); } }