Skip to content

Aliasing breaks with PHP8 #339

@shyim

Description

@shyim

Error:
Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@Orm\Table" in class Shopware\Models\Shop\Shop was never imported.

use Doctrine\ORM\Mapping as ORM;
/**
 * @ORM\Table(name="s_core_shops")
 * @ORM\Entity(repositoryClass="Repository")
 */

Without alias it works:

use Doctrine\ORM\Mapping as ORM;
/**
 * \Doctrine\ORM\Mapping\Table(name="s_core_shops")
 * \Doctrine\ORM\Mapping\Entity(repositoryClass="Repository")
 */

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