divineniiquaye/cycle-annotation

This package is abandoned and no longer maintained. The author suggests using the cycle/annotated package instead.

Cycle ORM Annotated Entities generator

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

README

Latest Stable Version Build Status Scrutinizer Code Quality Codecov

Example:

/**
 * @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;
    
    ...
}

License:

The MIT License (MIT). Please see LICENSE for more information. Maintained by Spiral Scout.