Fixed the BaseEntity to use the function keyword - forgot this was PHP