10000 Untitled by mweimerskirch · Pull Request #45 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Untitled #45

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix for the regular expression in the getEntityManager method. Only "…
…entity_manager" services should be returned; "entity_manager.*" have to be excluded.

This was necessary in order to make "app/console doctrine:generate:entities" work again.
  • Loading branch information
mweimerskirch committed Jan 8, 2011
commit 129f62c0fe0ddbe701c9b612bbac76ea1997333e
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected function getDoctrineEntityManagers()
$entityManagers = array();
$ids = $this->container->getServiceIds();
foreach ($ids as $id) {
preg_match('/doctrine.orm.(.*)_entity_manager/', $id, $matches);
preg_match('/^doctrine.orm.(.*)_entity_manager$/', $id, $matches);
if ($matches) {
$name = $matches[1];
$entityManagers[$name] = $this->container->get($id);
Expand Down
0