HaxeFoundation / record-macros

Macro-based ORM (object-relational mapping)
MIT License
49 stars 24 forks source link

Abstract enums #32

Closed filt3rek closed 5 years ago

filt3rek commented 5 years ago

Hej, When using SPOD I "search" a row using an abstract enum which is an Int, so I do that : MyObject.manager.select( $target == target ), where target is an abstract enum (Int) and the compiler complains because it expects an Int, is it SPOD related or do I miss something please ? Note : I have to do explicit cast( target, Int) in order to make it works.

filt3rek commented 5 years ago

Ok, I haven't added from Int to Int to my abstract, sorry.