45 lines
997 B
PHP
45 lines
997 B
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
class ProductOrderItems extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_product_order_items';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['product_order_id', 'drug_id'], 'integer'],
|
|
[['drug_image', 'drug_name', 'small_info', 'created_at', 'updated_at'], 'string'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'id',
|
|
'product_order_id' => 'product_order_id',
|
|
'drug_id' => 'drug_id',
|
|
'drug_image' => 'drug_image',
|
|
'number' => 'number',
|
|
'price' => 'price',
|
|
'drug_name' => 'drug_name',
|
|
'small_info' => 'small_info',
|
|
'created_at' => 'created_at',
|
|
'updated_at' => 'updated_at',
|
|
];
|
|
}
|
|
}
|