Port of Ash entity framework to HaXe