TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'] ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['divvy_id', 'send_time'], 'integer'], [['pay_price', 'dividend_amount', 'all_district_agent_divvy'], 'number'], [['order_no'], 'string'], [['created_at', 'updated_at'], 'safe'] ]; } }