sensio/SensioFrameworkExtraBundle — Issue #70: Undefined method Symfony\Bundle\FrameworkBundle\Templating\TemplateReference::getTemplate()
Author: merrix
Created: 2011-11-06 22:22:33+00:00
State: open

After upgrading to Symfony 2.0.5 and running a `bin/vendors install` and `bin/vendors update` I get the following error:

```
Fatal error: Call to undefined method Symfony\Bundle\FrameworkBundle\Templating\TemplateReference::getTemplate() in /Users/merrix/github/app/vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/EventListener/TemplateListener.php on line 62
```

Here is my deps file

```
[symfony]
git=http://github.com/symfony/symfony.git
version=v2.0.5

[twig]
git=http://github.com/fabpot/Twig.git
version=v1.1.2

[monolog]
git=http://github.com/Seldaek/monolog.git
version=1.0.2

[doctrine-common]
git=http://github.com/doctrine/common.git
version=2.1.2

[doctrine-dbal]
git=http://github.com/doctrine/dbal.git
version=2.1.3

[doctrine]
git=http://github.com/doctrine/doctrine2.git
version=2.1.2

[swiftmailer]
git=http://github.com/swiftmailer/swiftmailer.git
version=v4.1.3

[assetic]
git=http://github.com/kriswallsmith/assetic.git
version=v1.0.2

[twig-extensions]
git=http://github.com/fabpot/Twig-extensions.git

[metadata]
git=http://github.com/schmittjoh/metadata.git
version=1.1.0

[SensioFrameworkExtraBundle]
git=http://github.com/sensio/SensioFrameworkExtraBundle.git
target=/bundles/Sensio/Bundle/FrameworkExtraBundle

[JMSSecurityExtraBundle]
git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git
target=/bundles/JMS/SecurityExtraBundle
version=origin/1.0.x

[SensioDistributionBundle]
git=http://github.com/sensio/SensioDistributionBundle.git
target=/bundles/Sensio/Bundle/DistributionBundle
version=origin/1.0

[SensioGeneratorBundle]
git=http://github.com/sensio/SensioGeneratorBundle.git
target=/bundles/Sensio/Bundle/GeneratorBundle

[AsseticBundle]
git=http://github.com/symfony/AsseticBundle.git
target=/bundles/Symfony/Bundle/AsseticBundle
version=v1.0.1

[doctrine-fixtures]
git=http://github.com/doctrine/data-fixtures.git

[DoctrineFixturesBundle]
git=http://github.com/symfony/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle

[doctrine-migrations]
git=http://github.com/doctrine/migrations.git

[DoctrineMigrationsBundle]
git=http://github.com/symfony/DoctrineMigrationsBundle.git
target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle

[gedmo-doctrine-extensions]
git=git://github.com/l3pp4rd/DoctrineExtensions.git
version=2.1.x

[DoctrineExtensionsBundle]
git=git://github.com/stof/StofDoctrineExtensionsBundle.git
target=/bundles/Stof/DoctrineExtensionsBundle
version=origin/1.0.x

[BehatBundle]
git=https://github.com/Behat/BehatBundle.git
target=/bundles/Behat/BehatBundle

[Gherkin]
git=https://github.com/Behat/Gherkin.git
target=/behat/Gherkin

[Behat]
git=https://github.com/Behat/Behat.git
target=/behat/Behat

[JMSDebuggingBundle]
git=https://github.com/schmittjoh/JMSDebuggingBundle.git
target=/bundles/JMS/DebuggingBundle

[cg-library]
git=https://github.com/schmittjoh/cg-library.git

[JMSSerializerBundle]
git=git://github.com/schmittjoh/JMSSerializerBundle.git
target=/bundles/JMS/SerializerBundle

[JMSAopBundle]
git=git://github.com/schmittjoh/JMSAopBundle.git
target=/bundles/JMS/AopBundle

[JMSDiExtraBundle]
git=https://github.com/schmittjoh/JMSDiExtraBundle.git
target=/bundles/JMS/DiExtraBundle

[FOSUserBundle]
git=git://github.com/FriendsOfSymfony/FOSUserBundle.git
target=/bundles/FOS/UserBundle

[FOSRestBundle]
git=git://github.com/FriendsOfSymfony/FOSRestBundle.git
target=bundles/FOS/RestBundle
```

The only difference from official 2.0.5 deps is that I have Metadata at 1.1.0 instead of 1.0.0. Reverting Metadata to 1.0.0 does not resolve the issue however.