Skip to content

[5.7.14] Breaking change on eager loading when key is a string #26582

Closed
@fitztrev

Description

@fitztrev
  • Laravel Version: 5.7.14

Description:

I just upgraded to 5.7.14 (the version released today) and there is a breaking change affecting eager loading. At least in cases where the key is a string containing a period, it converts it to an integer instead of keeping it a string like it did before.

Before, in 5.7.13 and earlier:

... WHERE foo IN ('123.456')

Now, in 5.7.14:

... WHERE foo IN (123)

I narrowed it down to the change in this method: a4405e9#diff-c8675355c360b9bd4ef485c30ff5e025R82 Changing that method back to how it was fixes it.

cc @staudenmeir

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