DDC-1967: mysql Tiny ints not behaving properley #2480

Open
opened 2026-01-22 13:54:53 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 4, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user jonathanpete:

If I set up a field as a tinyint lets say called bob. I then extract a record.

If I do $object->getBob() - when bob = 1, everything works fine.

However, if I do $object->getBob() when bob = 0, the null value is returned.

If bob is null, everything works fine.

This issues only seems to happen with mysql tinyint.

Originally created by @doctrinebot on GitHub (Aug 4, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user jonathanpete: If I set up a field as a tinyint lets say called bob. I then extract a record. If I do $object->getBob() - when bob = 1, everything works fine. However, if I do $object->getBob() when bob = 0, the null value is returned. If bob is null, everything works fine. This issues only seems to happen with mysql tinyint.
admin added the Bug label 2026-01-22 13:54:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2480