TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['store_id', 'order_id', 'pool_level_id'], 'integer'], [['desc'], 'string'], [['money'], 'number'], [['created_at'], 'safe'] ]; } }