IsValidRelation returns false for a relation declared without explicit name
Closed this issue · 0 comments
Betelgeyser commented
For example
@relation("s")
struct S
{
@serial @PK int id;
mixin RelationMixin;
}
will compile just fine, but
@relation
struct S
{
@serial @PK int id;
mixin RelationMixin;
}
won't compile with an error
../dpq/source/dpq/mixins.d(32,17): Error: template instance `dpq.relationproxy.RelationProxy!(S)` does not match template declaration `RelationProxy(T)`
with `T = S`
must satisfy the following constraint:
` IsValidRelation!T`