PHP Code Generation, fixes transformFromArray, all thats left is update, and associate functions