cleric.test/models/Company.php

33 lines
557 B
PHP

<?php
namespace app\models;
class Company extends \yii\db\ActiveRecord
{
public $id;
public $title;
public $website;
public $address;
public $blog_id;
/**
* {@inheritDoc}
*/
public function rules()
{
return [
[['id', 'title', 'website', 'address'], 'required'],
[['title', 'website', 'address'], 'string'],
[['id', 'blog_id'], 'integer'],
];
}
/**
* {@inheritDoc}
*/
public function tableName()
{
return "companies";
}
}