8000 Type Conversion Issue When Upgrading to v2.10.1 - Integer Received Instead of String for CHAR Column · Issue #521 · cycle/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Type Conversion Issue When Upgrading to v2.10.1 - Integer Received Instead of String for CHAR Column #521
Open
@edson-nascimento

Description

@edson-nascimento

No duplicates 🥲.

  • I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?

After upgrading from cycle/orm v2.9.3 to v2.10.1, I'm encountering a type conversion issue with MySQL 5.7. A test in my application is failing because a CHAR column is receiving an integer value when it expects a string.

Steps to Reproduce:

Use cycle/orm v2.9.3 with MySQL 5.7 (working correctly)

Upgrade to v2.10.1

Run application tests that involve CHAR column operations

Observe type mismatch error where integer is provided instead of expected string

Expected Behavior:
CHAR columns should consistently receive string values as they did in v2.9.3.

Actual Behavior:
After upgrading, the system appears to be passing integer values to CHAR columns.

Additional Context:
The regression appears to be related to changes in EntityFactory.php where type handling might have been modified.

Possible Workaround:
Currently using v2.9.3 as the issue doesn't occur in that version.

    #[Column(name: 'response_code', type: 'string', nullable: true)]
    private $responseCode;

Version

ORM 2.10.1
PHP 8.3.12
MySQL 5.7.27
Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0