cycle/annotated

Cycle ORM Annotated Entities generator

v2.0.0 2019-08-13 10:48 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;
    
    ...
}