Fixed bug where custom onDelete actions could not be created.

The onDelete function has a different function signature which wasn't handled correctly by the code generator in SchemaHelper.