此包已被 废弃 且不再维护。作者建议使用 cycle/annotated 包。

Cycle ORM 注解实体生成器

v2.0.8 2020-06-16 23:10 UTC

README

Latest Stable Version Build Status Scrutinizer Code Quality Codecov

示例

/**
 * @Entity(repository = "Repository/UserRepository")
 */
class User
{
    /** @Column(type="primary") */
    protected $id;
    
    /** @HasOne(target=Profile::class, load="eager") */
    protected $profile;
    
    /** @HasMany(target=Post::class, load="lazy") */
    protected $posts;
   
    /** @ManyToMany(target=Tag::class, though=TagMap::class, load="lazy") */
    protected $tags;
    
    ...
}

许可证

MIT 许可证 (MIT)。更多信息请参阅 LICENSE,由 Spiral Scout 维护。