Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Flexmodel generates property with underscore if the field is a foreign key #55

Open
deborahvandervegt opened this issue Oct 25, 2016 · 0 comments

Comments

@deborahvandervegt
Copy link
Contributor

deborahvandervegt commented Oct 25, 2016

If an underscore is being used in a field and that field is a foreign key to another object, like in the next example, Flexmodel generates a property in the Entity which also contains an underscore.

<field name='object_created_by' label='Gereserveerd door' datatype='OBJECT.User'/>
    /**
     * @var User
     */
    private $object_created_by;

If the field is not a foreign key and an underscore is being used the property looks like:

<field name='object_created_at' label='Gereserveerd op' datatype='DATETIME'/>
    /**
     * @var DateTime
     */
    private $objectCreatedAt;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant