Skip to content

Schema generation using annotated entities and mappers

License

Notifications You must be signed in to change notification settings

buhta/cycle-annotated

 
 

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") */
    protected $id;
    
    /** @HasOne(target=Profile::class, load="eager") */
    protected $profile;
    
    /** @HasMany(target=Post::class, load="lazy") */
    protected $posts;
   
    /** @ManyToMany(target=Tag::class, through=TagMap::class, load="lazy") */
    protected $tags;
    
    ...
}

License:

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

About

Schema generation using annotated entities and mappers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.6%
  • Shell 0.4%