UFront-ORM rtti/meta problem

20 views
Skip to first unread message

Michel Romecki

unread,
Oct 17, 2016, 4:46:20 AM10/17/16
to haxe...@googlegroups.com
Hej all,
I've tried UFront-ORM (the git version) with latest nightly build Haxe
version and I get a strange error : "Missing @rtti for class ..." even
if my class extends ufront.db.Object...
When using with Haxe 3.2.1 (same with 3.2.0) I get another error :
Meta.class.php at line #14Undefined property: _hx_class::$__meta__
Can anyone tell me which version of UFront-ORM and Haxe work well
together please or how to solve that ?
Thanks in advance,
Michal

Laurence Taylor

unread,
Oct 17, 2016, 5:26:26 AM10/17/16
to haxe...@googlegroups.com

Try the @:keep metadata, it could be that the rtti is being removed by dead code elimination.

Loz


--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
--- You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Michel Romecki

unread,
Oct 17, 2016, 5:32:22 AM10/17/16
to haxe...@googlegroups.com

Hej !
Thanks for your answer, unfortunately it doesn't work. I have -dce no also, nothing to do...
Even if I force with @:rtti meta, it doesn't work. Another strange thing is that the compiled code (on PHP target), in the class there are rtti informations...
Also I think that the noew message error should be "Missing @:rtti for class ..." not @rtti, because it's a compile time meta...

Reply all
Reply to author
Forward
0 new messages