Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-1694

Entity Generator uses wrong DataTypes for docBlocks

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.3
    • Component/s: ORM
    • Labels:
      None

      Description

      When using the Doctrine\ORM\Tools\EntityGenerator, largely used by Symfony, the wrong data types are used in the docblocks. For example:

      @param text $description

      Text needs to be converted to "string" in this case. So there needs to be proper Doctrine Data Type to php type as well as the conversion to DBAL that is already done.

      Examples:
      smallint => int
      bigint => int
      text => string
      datetime => \DateTime,
      datetimetz, => \DateTime
      etc...

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            fabio.bat.silva Fabio B. Silva
            Reporter:
            rdohms Rafael Dohms
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: