| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace backend\models;
- use Yii;
- /**
- * This is the model class for table "crm_commission_ticket".
- *
- * @property integer $ticket
- * @property integer $type
- */
- class CommissionTicket extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'crm_commission_ticket';
- }
- /**
- * @return \yii\db\Connection the database connection used by this AR class.
- */
- public static function getDb()
- {
- return Yii::$app->get('dbXcrm');
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['ticket'], 'required'],
- [['ticket', 'type'], 'integer'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'ticket' => 'Ticket',
- 'type' => 'Type',
- ];
- }
- }
|