255], [['template_id'], 'string', 'max' => 50], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'status' => 'Status', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'mall_id' => 'Mall ID', 'mobile' => 'Mobile', 'content' => 'Content', 'send_at' => 'Send At', 'send_var' => 'Send Var', 'send_status' => 'Send Status', 'send_res' => 'Send Res', ]; } public function getUser() { return $this->hasOne(User::class, ['id' => 'user_id'])->select('id, mobile, username, nickname, area_code'); } public function getUserForm() { return $this->hasOne(AddonsSmartFormTemplateUserForm::class, ['id' => 'user_form_id']); } }