| Current Path : /var/www/html/planmalaysia/backend/models/ |
| Current File : /var/www/html/planmalaysia/backend/models/EventFeedback.php |
<?php
namespace backend\models;
use common\models\Juwara;
use Yii;
/**
* This is the model class for table "eventfeedback".
*
* @property string $id
* @property integer $participantid
* @property string $finding_descr
* @property string $solution_descr
* @property integer $attachmentid
* @property string $created_by
* @property string $created_at
* @property string $updated_by
* @property string $updated_at
* @property string $deleted_at
*/
class EventFeedback extends Juwara {
/**
* @inheritdoc
*/
public static function tableName() {
return 'eventfeedback';
}
/**
* @inheritdoc
*/
public $file;
public function rules() {
return [
[['finding_descr'], 'required'],
[['file'], 'file'],
[['participantid', 'attachmentid'], 'integer'],
[['finding_descr', 'solution_descr'], 'string'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['created_by', 'updated_by'], 'string', 'max' => 50],
];
}
/**
* @inheritdoc
*/
public function attributeLabels() {
return [
'id' => 'ID',
'participantid' => yii::t('app','Participantid'),
'finding_descr' => yii::t('app','Finding'),
'solution_descr' => yii::t('app','Solution'),
'attachmentid' => yii::t('app','File'),
'created_by' => yii::t('app','Created By'),
'created_at' => yii::t('app','Created At'),
'updated_by' => yii::t('app','Updated By'),
'updated_at' => yii::t('app','Updated At'),
'deleted_at' => yii::t('app','Deleted At'),
];
}
public function getAttachment() {
return $this->hasOne(Attachment::className(), ['id' => 'attachmentid']);
}
}