Skip to content

vvval/annotated

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cycle ORM - Annotated Entities

Latest Stable Version Build Status Scrutinizer Code Quality Codecov

Example:

/**
 * @entity(repository = "Repository/UserRepository")
 */
class User
{
    /**
     * @column(type=primary)
     * @var int
     */
    protected $id;
    
    /**
     * @hasOne(target=Profile)
     * @var Profile
     */
    protected $profile;
    
    /**
     * @hasMany(target=Post)
     * @var Post[]|Collection
     */
    protected $posts;
   
    /**
     * @manyToMany(target=Tag, though=TagMap)
     */
    protected $tags;
    
    ...
}

About

Schema generation using annotated entities and mappers.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 99.3%
  • Shell 0.7%