Skip to content

make:entity --regenerate and classes using traits #167

Closed
@nandorstanko

Description

@nandorstanko

I'm using traits in my entities like blameable, timestampable etc. I have getters/setters in those traits, so I don't have to define them in every entity. The command adds the getters/setters to my entities, although I have them already in the traits, and even adds the private property definitions again... I have tried to rewrite everything to exactly match the generated code, but the generator still inserts the functions again, so my guess is that it ignores the trait.

Maybe there is some other solution, and using traits is not the way to move forward, or this is just a bug. I need some advice or confirmation in both cases :) Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug Fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions