0 votes

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
{
...
in Solved by (1.4k points)
recategorized by

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

1 Answer

0 votes
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

by Skipper developer (141k points)
selected by