<?php namespace common\models; use Yii; use yii\db\ActiveRecord; /** * This is the model class for table "metal_plate_part". * * @property integer $id * @property string $name */ class MetalPlatePart extends ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'metal_plate_part'; } /** * @inheritdoc */ public function rules() { return [ [['name'], 'string', 'max' => 100], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', ]; } public function getMiddleParintPrice(){ } }