Skip to content

Update database.rst #8001

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

Merged
merged 1 commit into from
Jul 11, 2017
Merged

Update database.rst #8001

merged 1 commit into from
Jul 11, 2017

Conversation

Max93
Copy link
Contributor

@Max93 Max93 commented Jun 5, 2017

Fix typo: EntityManagerInterface to EntityRepository

Fix typo: EntityManagerInterface to EntityRepository
@@ -86,7 +86,7 @@ it's easy to pass a mock object within a test::

// Now, mock the repository so it returns the mock of the employee
$employeeRepository = $this
->getMockBuilder(EntityManagerInterface::class)
->getMockBuilder(EntityRepository::class)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should not mock the ObjectRepository interface instead. We then would even not have to use the disableOriginalConstructor() call.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always prefer to makes those kind of changes simultaneously for all existing articles, to avoid differences between articles. Maybe we can open an issue to not forget about that. Thanks!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #8144

@xabbuh xabbuh added this to the 3.3 milestone Jul 9, 2017
@xabbuh
Copy link
Member

xabbuh commented Jul 11, 2017

Thank you @Max93.

@xabbuh xabbuh merged commit a3271a2 into symfony:3.3 Jul 11, 2017
xabbuh added a commit that referenced this pull request Jul 11, 2017
This PR was merged into the 3.3 branch.

Discussion
----------

Update database.rst

Fix typo: EntityManagerInterface to EntityRepository

Commits
-------

a3271a2 Update database.rst
@Max93 Max93 deleted the patch-1 branch July 12, 2017 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants