Skip to content

Function class_uses does not return traits used on parent class #1

@ben221199

Description

@ben221199

In my project all models are soft-deletable, so soft-deletion (and some other common properties) are defined in a parent Model called ObjectModel. This model has the SoftDeletesBoolean trait. However, this trait is not detected in SoftDeleteBooleanDriver because it is using class_uses, that only returns traits in the current class and not in parent classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions