0 votes

Got another small question.

When defining a field in an Entity, you can define which database field name should be used in the column ORM properties. This doesn't seem to function for foreign key fields.

I have a Note entity and a User entity:

I've set up to use custom table fields on all items using the ORM properties field:

This works correctly for all fields, it won't work correctly however for associations:

I'm getting this file when I export it to ORM:

Where I would expect this:
* @ORM\ManyToOne(targetEntity="User", inversedBy="notes")
* @ORM\JoinColumn(name="note_created_by", referencedColumnName="id")
private $noteCreatedBy;

Any idea why that's not happening?

in Solved by (170 points)

Thank you for reporting this. We have checked the situation and we found out that Skipper incorrectly exports field name instead of column name in the definition of association. We will fix this and I will let you know when the fix is available for download.

Ok, thanks for letting me know.
Will adjust our field names for now until this is resolved

Hi, sorry it took so long to get back to you but our build server was overheated in these days and we have to solve additional cooling, which takes us whole day ;-).

Please check beta page: http://support.skipper18.com/402/downloads-skipper-orm-designer-3-beta where you can find updated version with fix for your issue.

Please let us know if this helped.

Please log in or register to answer this question.