Skip to content

Binary strings break (dont)seeInRepository #49

Closed
@frankverhoeven

Description

@frankverhoeven

Hi there,

If one of the parameters passed to (dont)seeInRepository() is a binary string, the json_encode call in Doctrine2::proceedSeeInRepository() fails. This results in the following exception: [JsonException] Malformed UTF-8 characters, possibly incorrectly encoded.

Little bit of context. We store UUIDs in a BINARY(16) column. When querying, we select by the binary representation of the UUID .

This was changed in #47, when JSON_THROW_ON_ERROR was added to the json_encode call. Before it would fail silently and return false.

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