Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "contactmaster".
- *
- * @property int $id
- * @property string $name
- * @property string $phone
- * @property int $specialnosty_id
- */
- class Contactmaster extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'contactmaster';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['name', 'phone'], 'required'],
- [['specialnosty_id'], 'integer'],
- [['name', 'phone'], 'string', 'max' => 50],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'name' => 'Name',
- 'phone' => 'Phone',
- 'specialnosty_id' => 'Specialnosty ID',
- ];
- }
- }
Add Comment
Please, Sign In to add comment