/**
* @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;
...
}
The MIT License (MIT). Please see LICENSE
for more information. Maintained by Spiral Scout.