Uploaded image for project: 'Doctrine 1'
  1. Doctrine 1
  2. DC-1017

Floats persisted in the database are retrieve as strings.


    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu 64 bits, php 5.3


      Someone complained about symfony padding 0's after floats http://stackoverflow.com/questions/6650786/remove-extra-decimal-place-in-float-datatype-on-symfony/6663829 , I think it's a doctrine problem, since the doctrine:dql task seems to have the same problem:

      >> doctrine executing dql query
      DQL: FROM UcVideoAspect
      found 1 results
      id: '1'
      video_id: null
      pixel_ratio: '12.50'
      width: null
      height: null

      Here, pixel ratio is defined as a float in the schema.yml file
      Getting the property from a transient object returns a float, while getting it from the db returns a string.


        greg0ire Grégoire Paris created issue -

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={expand=changesets[0:20].revisions[0:29],reviews, query=DC-1017}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)


          • Assignee:
            jwage Jonathan H. Wage
            greg0ire Grégoire Paris
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: