ufront / ufront-orm

The Object Relational Mapper, allows easy, type-safe access to your database. Builds on Haxe's SPOD but adds macro powered relationships, validation and client side usage
MIT License
13 stars 4 forks source link

SNull<BelongsTo<T>> doesn't work, but Null<BelongsTo<T>> does #20

Open jasononeil opened 9 years ago

jasononeil commented 9 years ago

Just ran into this, writing it down so I remember to fix it later.

This works:

public var decidedBy:Null<BelongsTo<User>>;

This doesn't:

// Unsupported Record Type 
public var decidedBy:SNull<BelongsTo<User>>;  ufront.auth.model.User

Also this doesn't:

public var decidedBy:BelongsTo<Null<User>>;  // Null is not a value