Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method setFileExtension for Doctrine YamlDriver #19

Open
ako977 opened this issue Mar 9, 2013 · 0 comments
Open

Call to undefined method setFileExtension for Doctrine YamlDriver #19

ako977 opened this issue Mar 9, 2013 · 0 comments

Comments

@ako977
Copy link

ako977 commented Mar 9, 2013

This is the full error I get:

Fatal error: Call to undefined method Doctrine\ORM\Mapping\Driver\YamlDriver::setFileExtension() in *\vendor\taluu\doctrine-orm-provider\lib\Nutwerk\Provider\DoctrineORMServiceProvider.php on line 104

I'm guessing the solution to be that on the line:

$driver = new YamlDriver((array)$entity['path']);
$driver->setFileExtension('.yml');

It should be instead:

$driver = new YamlDriver((array)$entity['path'],".yml");
@ako977 ako977 closed this as completed Dec 2, 2015
@ako977 ako977 reopened this Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant