29 lines
584 B
PHP
29 lines
584 B
PHP
<?php
|
|
|
|
namespace app\models;
|
|
use app\models\register\Partner;
|
|
|
|
/**
|
|
* Class News
|
|
* @package app\models
|
|
* @property $title
|
|
* @property $text
|
|
* @property $text_short
|
|
* @property $ts_en_title
|
|
* @property $ts_en_text
|
|
* @property $ts_en_text_short
|
|
* @property $media_key
|
|
* @property $stream_url
|
|
* @property $stream_access
|
|
* @property $partner_id
|
|
* @property Partner $partner
|
|
* @property $is_for_publish
|
|
* @property $article_key
|
|
*/
|
|
class News extends Articles
|
|
{
|
|
public function getPartner() {
|
|
return $this->hasOne(Partner::class, ['id' => 'partner_id']);
|
|
}
|
|
}
|