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

Notice: Undefined property: Sulu\Bundle\CommunityBundle\Command\InitCommand::$entityManager #115

Closed
mielcarp opened this issue May 23, 2019 · 1 comment

Comments

@mielcarp
Copy link

Q A
Bug? yes
New Feature? no
Community Bundle Version ^1.1
Sulu Version 1.6
Browser Version Firefox

Actual Behavior

When I run command

php bin/console sulu:community:init

system return:

09:49:52 ERROR [console] Error thrown while running command "sulu:community:init". Message: "Notice: Undefined property: Sulu\Bundle\CommunityBundle\Command\InitCommand::$entityManager" ["exception" => Symfony\Component\Debug\Excepti
on\ContextErrorException { …},"command" => "sulu:community:init","message" => "Notice: Undefined property: Sulu\Bundle\CommunityBundle\Command\InitCommand::$entityManager"]

In InitCommand.php line 61:

Notice: Undefined property: Sulu\Bundle\CommunityBundle\Command\InitCommand::$entityManager

Possible Solutions

in file:

vendor\sulu\community-bundle\Command\InitCommand.php

in line 64:

$this->entityManager->flush();

replace to:

$entityManager->flush();

@alexander-schranz
Copy link
Member

Thank you! Fixed in #114 will be released in 1.1.1

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

2 participants