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

Data fixture load error #21

Closed
johnnyMick opened this issue Mar 17, 2013 · 2 comments · Fixed by Sylius/SyliusCoreBundle#15
Closed

Data fixture load error #21

johnnyMick opened this issue Mar 17, 2013 · 2 comments · Fixed by Sylius/SyliusCoreBundle#15

Comments

@johnnyMick
Copy link

when loading the data fixture i got this error :
PHP Parse error: syntax error, unexpected '[' in /var/www/sylius/vendor/sylius/core-bundle/Sylius/Bundle/CoreBundle/DataFixtures/ORM/LoadProductsData.php on line 276.

i solved it by using :
$productName = explode(' ', $product->getName());
$image = clone $this->getReference(
'Sylius.Image.'.strtolower($productName[0])
);

@stloyd
Copy link
Contributor

stloyd commented Apr 11, 2013

@johnnyMick Can you check as Sylius/SyliusCoreBundle#15 was merged?

@johnnyMick
Copy link
Author

@stloyd i'm not related to the development team or anything, i just cloned the project to check it out, and got this problem, so i posted this

pjedrzejewski pushed a commit that referenced this issue Aug 26, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 26, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 27, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 27, 2013
Made Coordinator::buildProcess protected
pjedrzejewski pushed a commit that referenced this issue Aug 27, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 27, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 27, 2013
[WIP] Symfony 2.3 upgrade
pjedrzejewski pushed a commit that referenced this issue Aug 29, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 29, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 29, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 29, 2013
[WIP] Symfony 2.3 upgrade
pjedrzejewski pushed a commit that referenced this issue Aug 29, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 29, 2013
pjedrzejewski pushed a commit that referenced this issue Aug 29, 2013
Made Coordinator::buildProcess protected
lchrusciel referenced this issue in lchrusciel/Sylius Dec 15, 2014
installed behat with extensions
CoderMaggie pushed a commit to CoderMaggie/Sylius that referenced this issue Jun 1, 2016
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

Successfully merging a pull request may close this issue.

2 participants