Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-546

[GH-337] Add getBindingType() method in DecimalType

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of javierseixas:

      Url: https://github.com/doctrine/dbal/pull/337

      Message:

      Hi,

      I was trying to use the findBy method from the repository, where some of the criteria data were negative floats values. I didn't get any results, though I had coincidental records in the BD with that criteria.

      After searching I found this issue: http://stackoverflow.com/questions/8300208/php-pdo-prepare-negatives-become-positive

      So, it seemed the problem was caused for the same reason. I've added the getBindingType() returning the PDO::PARAM_INT constant and now my findBy is returning the results correctly.

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-337] was closed:
        https://github.com/doctrine/dbal/pull/337

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-337] was closed: https://github.com/doctrine/dbal/pull/337

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: