PriceMailing.php 887 Bytes
<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "w_price_mailing".
 *
 * @property integer $id
 * @property string $name
 * @property string $email
 * @property integer $price_id
 */
class PriceMailing extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'w_price_mailing';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name', 'email', 'price_id'], 'required'],
            [['price_id'], 'integer'],
            [['name', 'email'], 'string', 'max' => 254]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'email' => 'Email',
            'price_id' => 'Price ID',
        ];
    }
}