Skip to content
This repository was 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

@deborahvandervegt

Description

@deborahvandervegt

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions