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

Document service repositories #595

Merged
merged 1 commit into from
Nov 6, 2019

Conversation

malarzm
Copy link
Member

@malarzm malarzm commented Oct 28, 2019

Closes #516

Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

Also pinging @jmikola for his grammar review skills.


.. code-block:: php

// src/Acme/StoreBundle/Repository/ProductRepository.php
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to document the repositoryClass argument to the Document mapping again to be on the safe side?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure, previous chapter is all about that :) On the other hand we could add a comment in the code reminding user to set repositoryClass

Copy link
Member

Choose a reason for hiding this comment

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

A short comment sounds sensible and should be sufficient if the previous section covers this in more detail 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Done 👍

Resources/doc/first_steps.rst Show resolved Hide resolved
@malarzm malarzm changed the base branch from master to 4.0 November 6, 2019 19:08
@malarzm malarzm changed the base branch from 4.0 to master November 6, 2019 19:09
@malarzm malarzm changed the base branch from master to 4.0 November 6, 2019 19:17
@malarzm malarzm merged commit cd49e8a into doctrine:4.0 Nov 6, 2019
Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

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

Sorry for the delayed response. Just came across the GitHub notification requesting a grammar review.

}

The ``ServiceDocumentRepository`` class your custom repository is extending allows you to
leverage Symfony's `autowiring`_ and `autoconfiguration`_. To register all your repositories
Copy link
Member

Choose a reason for hiding this comment

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

"all of your"

malarzm added a commit that referenced this pull request Nov 6, 2019
@alcaeus alcaeus added this to the 4.0.1 milestone Nov 26, 2019
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.

5 participants