Skip to content

Implement a rule that prevents final constructors in Doctrine Entities #202

@gnutix

Description

@gnutix

Hello there,

I'm having quite a hard time getting my head around this : final methods in Doctrine Entities. There's a PR that added a check that Entities cannot be final (the class itself), but a comment from the author said he doesn't want to add checks for final methods.

However, from what I can see in my Doctrine proxied classes in var/cache in production, all methods of the class is inherited/overridden in proxies. So it just cannot work with a final method, whichever it is.

Why hasn't this check been added then ?

I'm curious about your insights. Thanks!
gnutix

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