Skip to content


DDC-3025: Mapping drivers do not honor scale or precision for identifier fields #3793

doctrinebot opened this Issue · 0 comments

2 participants


Jira issue originally created by user huda.salam:

FYI. I don't use doctrine but with symfony2, and only use .yml or .xml mapping. Not yet try with annotation.

These commands :

{quote}php app\console doctrine:schema:update
php app\console doctrine:schema:create{quote}

Will not generate id's precision and scale for this kind of mapping :

<doctrine-mapping .....>
<entity name="Namespace\MyBundle\Entity\MyData" table="my_data">
<id name="id" type="decimal" column="id" precision="x" scale="y">
<generator strategy="IDENTITY"/>
<field ... />
</ ....>

Suggested changes :

  • Doctrine\ORM\Mapping\Driver\YamlDriver.php
  • Doctrine\ORM\Mapping\Driver\XmlDriver.php
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.