0 votes

I've tried the demo version, and before purchasing your software, I need to be sure that all Entity fields will be exported in full version.
Can you confirm me ?
Thanks a lot, very good software :)

asked in Solved by (220 points)
recategorized by

1 Answer

0 votes
Best answer

Hi,

there is no difference between full version and trial version in case of exported fields.

Can you please be more specific what exactly isn't working? What ORM framework are you using, etc. ? I will be happy to help you if you will provide me more info.

The most common issue with not-exporting fields are associations in Doctrine2. You need to specify association alias which is used as the field name.

answered by Skipper developer (135k points)
selected by

Hi, and thanks,
I'm using Doctrine2/Symfony3 framework.
Look at the section table. There are 5 fields and in my entity file, i've two fields:

<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(
 *     name="Sections",
 *     indexes={
 *         @ORM\Index(name="ParentID", columns={"IssueID","ParentID"}),
 *         @ORM\Index(name="Sections_Sections", columns={"ParentID","id"})
 *     }
 * )
 */
class Sections
{
    /**
     * @ORM\Column(type="string", length=255, nullable=true, options={"default":NULL})
     */
    private $Name;

    /**
     * @ORM\Column(type="integer", nullable=true, options={"default":NULL})
     */
    private $Position;
}

enter image description here

Thanks for screenshots.

This is a correct behavior. These two fields are association columns. For Doctrine2 you have to fill "accessible as" for one or both direction to get associations exported (as I mentioned in my original post).

For other ORM frameworks associations are defined via column/field names but for Doctrine2 it's necessary to enter also association alias.

After that you will get association exported which will use these two columns/fields

PS:

Alias is necessary because you can define alias for direction owner->inverse as same as different alias for direction inverse->owner.

In your case this means Issues->Sections you can define for example as "section","owningSection",etc. and opposite direction Sections->Issues as "registeredIssues","issues", etc.

Thanks you a lot, you save my life :)

No problem, you're welcome.