changed usage of static:: to self:: in AbstractModel