-
Notifications
You must be signed in to change notification settings - Fork 40
Support for files in fixtures #22
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's "$file" here, but it was "$path" in the constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is because $fixtures_data in constructor is $file. (Correction would require small refactoring.)
What was blocking with 2.2? |
Composer output:
This wasn't wery helpful, but finally the problem part is:
beacuse of it's composer.json. When I changed (in your original composer.json) only this dependency for
problem disappeared. So if you want I can change composer.json again. |
And I think that dependency for
is not required. |
That's kind of me being a freak about tagging all versions and never using dev-master... I'll have a look |
ping @khepin |
It's been merged on a "merge" branch. |
Proposed changes allows to load files in fixtures. It is compatible with the symfony cookbook article about uploading files in doctrine and also with VichUploaderBundle. If you consider these changes as acceptable I will update docs. I also changed the composer.json, because it was impossible to make it work work with symfony 2.2.0BETA.
Example:
The path is relative to fixtures yml file.