Skip to content

$primaryKey forcefully 'needs' to be auto_increment #2133

Description

@fefo-p

Describe the bug
The primary key of my table is a combination of numbers and letters.
Using or not validation, a new record will not be saved to DB using Entities' save()

CodeIgniter 4 version
CodeIgniter Version: | 4.0.0-beta.4

Affected module(s)
Couldn't figure it out.

Expected behavior, and steps to reproduce if appropriate
A new record should be saved provided I include the primary key value.
Validation rules take care of it being a unique value.
$numero's format is ##-#####/## (12-34567/89)

https://pastebin.com/embed_js/Dz6JFnmk

Context

  • OS: Ubuntu 18.04.2 LTS
  • Web server Apache/2.4.29 (Ubuntu)
  • PHP version 7.2.19

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions