1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-02-12 18:11:52 +00:00
yii2-nomer/models/OrganizationPhone.php
2020-02-05 06:34:26 +03:00

49 lines
843 B
PHP

<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "org_phones".
*
* @property integer $id
* @property integer $org_id
* @property string $name
* @property string $phone
* @property string $phone2
*/
class OrganizationPhone extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'org_phones';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['org_id'], 'integer'],
[['name', 'phone'], 'string', 'max' => 255],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'org_id' => 'Org ID',
'name' => 'Name',
'phone' => 'Phone',
];
}
}