[Solved] Doctrine2 annotations - Wrong comment fusion

0 votes
asked Mar 8, 2013 in Solved by Email support (1,420 points)
recategorized Mar 13, 2013 by ludek.vodicka

When importing and exporting following PHP file, ORM Designer incorrectly handles annotations:

<?php
/**
 * Date: 2013.01.31.
 * Time: 10:35
 * Filename: Contact.php
 */
namespace ProjectEntities\Entity;

use Doctrine\ORM\Mapping as ORM,
    JMS\Serializer\Annotation as JMS;

/**
 * @ORM\Entity(repositoryClass="ContactRepository")
 * @ORM\Table(name="contact")
 * @JMS\ExclusionPolicy("none")
 */
class Contact
{
   ...

exported file looks like this:

<?php

namespace ProjectEntities\Entity;

use Doctrine\ORM\Mapping as ORM,
    JMS\Serializer\Annotation as JMS;

/**/**
 * Date: 2013.01.31.
 * Time: 10:35
 * Filename: Contact.php
 */
 * @ORM\Entity(repositoryClass="ContactRepository")
 * @ORM\Table(name="contact")
 * @JMS\ExclusionPolicy("none")
 */
class Contact
{
...
commented Mar 8, 2013 by ludek.vodicka Skipper developer (140,450 points)

Found and fixed. Update will be available in next release.

1 Answer

0 votes
answered Mar 13, 2013 by ludek.vodicka Skipper developer (140,450 points)
selected Jul 30, 2014 by Martin Freki Stradej
 
Best answer

New version 2.1.10.697 with this feature/bugfix was released.
Please download latest version here http://www.orm-designer.com/download-orm-designer

...