cycle / annotated
Cycle ORM Annotated Entities generator
Installs: 43 228
Dependents: 23
Suggesters: 3
Security: 0
Stars: 13
Watchers: 3
Forks: 4
Open Issues: 6
Requires
- php: >=7.2
- cycle/schema-builder: ^1.0
- doctrine/annotations: ^1.7
- spiral/tokenizer: ^2.7
Requires (Dev)
- mockery/mockery: ^1.1
- phpunit/phpunit: ~8.0
- spiral/code-style: ^1.0
- spiral/debug: ^2.7
README
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.