Skip to content

Impossible to declare types for Doctrine entities #21

@Kolyunya

Description

@Kolyunya

I was trying to incorporate Doctrine types into my project. Types themselves seem to be working fine.
But I came across a problem with type declarations of properties. When I declare property type like this

private Point $point;

I get a error:

The annotation "@noproxy" in method Brick\Geo\Point::geometryType() was never imported. Did you maybe forget to add "use" statement for this annotation?

Moreover this problem persists even if I give up the PHP type declarations and use PHPDoc instead.

So the only option is to remove all type declarations altogether which is obviously a huge issue.

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