Fix generate method parameter signature.
Update model.js.twig template to produce compatible extjs entity due to change in serializer.