Skip to content

关于实体模型自动查找模型的问题 #846

Description

@LifeTimeNine

在 think-orm/src/Entity.php: 53-54中,通过替换命名空间来实现自动查找模型类,把\entity\替换为了\model\。
多数情况下没有问题,但是在我们项目中,命名空间是\entity\User和\model\User,这就导致替换失败,$class还是当前类,运行时无限的初始化,最终内存不足。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions