Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%good}}".
- *
- * @property integer $id
- * @property string $title
- * @property string $text
- * @property integer $rubric_id
- * @property integer $user_id
- * @property string $created_at
- * @property integer $deleted
- * @property integer $good_id
- */
- class Good extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%good}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['text'], 'string'],
- [['rubric_id', 'user_id', 'good_id'], 'integer'],
- [['created_at'], 'safe'],
- [[ 'good_id'], 'required'],
- [['title'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'title' => 'Title',
- 'text' => 'Text',
- 'rubric_id' => 'Rubric ID',
- 'user_id' => 'User ID',
- 'created_at' => 'Created At',
- 'deleted' => 'Deleted',
- 'good_id' => 'Good ID',
- ];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement