Support for method calls on models from Twig templates